pub struct Link {
pub href: String,
pub range: Range<usize>,
}Expand description
A resolved hyperlink.
Fields§
§href: StringThe destination, already scheme-checked (see
crate::markdown::scheme_allowed).
range: Range<usize>The range of visible text that activates it. Kept alongside the
span’s link id so a click can report both what was shown and
where it actually goes — the label and the href are allowed to
disagree, and the user is entitled to know when they do.
Trait Implementations§
impl Eq for Link
impl StructuralPartialEq for Link
Auto Trait Implementations§
impl Freeze for Link
impl RefUnwindSafe for Link
impl Send for Link
impl Sync for Link
impl Unpin for Link
impl UnsafeUnpin for Link
impl UnwindSafe 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