pub struct _Option(/* private fields */);Expand description
A node in the syntax tree for $ast
Implementations§
Source§impl _Option
impl _Option
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 _Option
impl StructuralPartialEq for _Option
Auto Trait Implementations§
impl Freeze for _Option
impl !RefUnwindSafe for _Option
impl !Send for _Option
impl !Sync for _Option
impl Unpin for _Option
impl UnsafeUnpin for _Option
impl !UnwindSafe for _Option
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