pub struct LinkDest(/* private fields */);Implementations§
Source§impl LinkDest
impl LinkDest
Sourcepub fn url(&self) -> String
pub fn url(&self) -> String
Returns the URL/destination as a string (with surrounding parentheses).
Sourcepub fn url_content(&self) -> String
pub fn url_content(&self) -> String
Returns the URL without parentheses.
Sourcepub fn hash_anchor_id_range(&self) -> Option<TextRange>
pub fn hash_anchor_id_range(&self) -> Option<TextRange>
Returns the range for a hash-anchor id within destination text (without ‘#’).
Sourcepub fn hash_anchor_id(&self) -> Option<String>
pub fn hash_anchor_id(&self) -> Option<String>
Returns the hash-anchor id within destination text (without ‘#’).
Trait Implementations§
Source§impl AstNode for LinkDest
impl AstNode for LinkDest
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 LinkDest
impl !RefUnwindSafe for LinkDest
impl !Send for LinkDest
impl !Sync for LinkDest
impl Unpin for LinkDest
impl UnsafeUnpin for LinkDest
impl !UnwindSafe for LinkDest
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