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