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