pub struct WeakTextRange { /* private fields */ }
Implementations§
source§impl WeakRange
impl WeakRange
pub fn node_id(&self) -> NodeId
pub fn start_comparable(&self) -> &(Vec<usize>, usize)
pub fn end_comparable(&self) -> &(Vec<usize>, usize)
pub fn upgrade_node<'a>(&self, tree_state: &'a TreeState) -> Option<Node<'a>>
pub fn upgrade<'a>(&self, tree_state: &'a TreeState) -> Option<Range<'a>>
Trait Implementations§
impl Eq for WeakRange
impl StructuralPartialEq for WeakRange
Auto Trait Implementations§
impl Freeze for WeakRange
impl RefUnwindSafe for WeakRange
impl Send for WeakRange
impl Sync for WeakRange
impl Unpin for WeakRange
impl UnwindSafe for WeakRange
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)