pub struct Version(/* private fields */);Expand description
A node in the syntax tree for $ast
Implementations§
Source§impl Version
impl Version
Sourcepub fn text_range(&self) -> TextRange
pub fn text_range(&self) -> TextRange
Byte range covered by this node in the source buffer.
Useful for editors that need to map a logical concept (an option, a URL, a matching pattern) back to the exact span it occupies — e.g. to filter LSP diagnostics by which part of a watch entry was edited.
Trait Implementations§
impl Eq for Version
impl StructuralPartialEq for Version
Auto Trait Implementations§
impl Freeze for Version
impl !RefUnwindSafe for Version
impl !Send for Version
impl !Sync for Version
impl Unpin for Version
impl UnsafeUnpin for Version
impl !UnwindSafe for Version
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