pub struct DocumenterLink { /* private fields */ }Expand description
A Documenter-style link destination with its decoded source ranges.
Implementations§
Source§impl DocumenterLink
impl DocumenterLink
Sourcepub fn kind(&self) -> DocumenterLinkKind<'_>
pub fn kind(&self) -> DocumenterLinkKind<'_>
Return the core or extension link kind.
Sourcepub fn target(&self) -> Option<&str>
pub fn target(&self) -> Option<&str>
Return an explicit target. None means Documenter infers it from the label.
Sourcepub fn target_range(&self) -> Option<TextRange>
pub fn target_range(&self) -> Option<TextRange>
Return the explicit target’s decoded-text range.
Trait Implementations§
Source§impl Clone for DocumenterLink
impl Clone for DocumenterLink
Source§impl Debug for DocumenterLink
impl Debug for DocumenterLink
impl Eq for DocumenterLink
Source§impl Hash for DocumenterLink
impl Hash for DocumenterLink
Source§impl PartialEq for DocumenterLink
impl PartialEq for DocumenterLink
impl StructuralPartialEq for DocumenterLink
Auto Trait Implementations§
impl !RefUnwindSafe for DocumenterLink
impl !Send for DocumenterLink
impl !Sync for DocumenterLink
impl !UnwindSafe for DocumenterLink
impl Forget for DocumenterLink
impl Freeze for DocumenterLink
impl Move for DocumenterLink
impl Unpin for DocumenterLink
impl UnsafeUnpin for DocumenterLink
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