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§fn clone(&self) -> VersionPolicyNode
fn clone(&self) -> VersionPolicyNode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VersionPolicyNode
impl Debug for VersionPolicyNode
Source§impl Display for VersionPolicyNode
impl Display for VersionPolicyNode
Source§impl Hash for VersionPolicyNode
impl Hash for VersionPolicyNode
Source§impl PartialEq for VersionPolicyNode
impl PartialEq for VersionPolicyNode
Source§fn eq(&self, other: &VersionPolicyNode) -> bool
fn eq(&self, other: &VersionPolicyNode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for VersionPolicyNode
impl StructuralPartialEq for VersionPolicyNode
Auto Trait Implementations§
impl Freeze for VersionPolicyNode
impl !RefUnwindSafe for VersionPolicyNode
impl !Send for VersionPolicyNode
impl !Sync for VersionPolicyNode
impl Unpin for VersionPolicyNode
impl UnsafeUnpin for VersionPolicyNode
impl !UnwindSafe 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