pub struct Link(/* private fields */);Implementations§
Source§impl Link
impl Link
Sourcepub fn destination(&self) -> String
pub fn destination(&self) -> String
Return the link destination, joining paragraph continuations with spaces.
Sourcepub fn destination_range(&self) -> Option<TextRange>
pub fn destination_range(&self) -> Option<TextRange>
Return the decoded-text range covering the destination inside (…).
Wrapped destinations include the intervening newline and container
prefixes. Individual LINK_DESTINATION tokens exclude those prefixes.
Source§impl Link
impl Link
Sourcepub fn documenter_link(&self) -> Option<DocumenterLink>
pub fn documenter_link(&self) -> Option<DocumenterLink>
Return Documenter link metadata for an @ref, @id, or extension URL.
Trait Implementations§
Source§impl AstNode for Link
impl AstNode for Link
type Language = DocumentationLanguage
fn can_cast(kind: SyntaxKind) -> bool
fn cast(syntax: SyntaxNode) -> Option<Self>
fn syntax(&self) -> &SyntaxNode
fn clone_subtree(&self) -> Selfwhere
Self: Sized,
impl Eq for Link
impl StructuralPartialEq for Link
Auto Trait Implementations§
impl !RefUnwindSafe for Link
impl !Send for Link
impl !Sync for Link
impl !UnwindSafe for Link
impl Forget for Link
impl Freeze for Link
impl Move for Link
impl Unpin for Link
impl UnsafeUnpin for Link
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