pub struct InlineLink<'a> {
pub kind: LinkKind,
pub label: &'a str,
pub target: &'a str,
pub range: Range<usize>,
}Expand description
A single inline link located within a text run.
Fields§
§kind: LinkKind§label: &'a strThe display label. For LinkKind::Markdown this is the raw slice
between [ and ]; for LinkKind::Wiki it equals target.
target: &'a strThe link target, trimmed of surrounding whitespace. Never empty.
range: Range<usize>Byte range of the whole construct within the source text.
Trait Implementations§
Source§impl<'a> Clone for InlineLink<'a>
impl<'a> Clone for InlineLink<'a>
Source§fn clone(&self) -> InlineLink<'a>
fn clone(&self) -> InlineLink<'a>
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<'a> Debug for InlineLink<'a>
impl<'a> Debug for InlineLink<'a>
impl<'a> Eq for InlineLink<'a>
Source§impl<'a> PartialEq for InlineLink<'a>
impl<'a> PartialEq for InlineLink<'a>
Source§fn eq(&self, other: &InlineLink<'a>) -> bool
fn eq(&self, other: &InlineLink<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> StructuralPartialEq for InlineLink<'a>
Auto Trait Implementations§
impl<'a> Freeze for InlineLink<'a>
impl<'a> RefUnwindSafe for InlineLink<'a>
impl<'a> Send for InlineLink<'a>
impl<'a> Sync for InlineLink<'a>
impl<'a> Unpin for InlineLink<'a>
impl<'a> UnsafeUnpin for InlineLink<'a>
impl<'a> UnwindSafe for InlineLink<'a>
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