pub struct ReferenceDefinition(/* private fields */);Implementations§
Source§impl ReferenceDefinition
impl ReferenceDefinition
Sourcepub fn destination(&self) -> Option<String>
pub fn destination(&self) -> Option<String>
Extracts raw destination text from a reference definition body.
Sourcepub fn label_value_range(&self) -> Option<TextRange>
pub fn label_value_range(&self) -> Option<TextRange>
Returns the text range for the definition label value.
Trait Implementations§
Source§impl AstNode for ReferenceDefinition
impl AstNode for ReferenceDefinition
type Language = PanacheLanguage
fn can_cast(kind: SyntaxKind) -> bool
fn cast(syntax: SyntaxNode) -> Option<Self>
fn syntax(&self) -> &SyntaxNode
fn clone_for_update(&self) -> Selfwhere
Self: Sized,
fn clone_subtree(&self) -> Selfwhere
Self: Sized,
Auto Trait Implementations§
impl Freeze for ReferenceDefinition
impl !RefUnwindSafe for ReferenceDefinition
impl !Send for ReferenceDefinition
impl !Sync for ReferenceDefinition
impl Unpin for ReferenceDefinition
impl UnsafeUnpin for ReferenceDefinition
impl !UnwindSafe for ReferenceDefinition
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