pub struct Link {
pub url: String,
pub text: String,
pub byte_range: Range<usize>,
pub line: usize,
}Expand description
A hyperlink discovered in the document ([text](url) or reference form).
Fields§
§url: StringLink destination as written.
text: StringLink text.
byte_range: Range<usize>Byte span in the original input.
line: usize1-based line number.
Trait Implementations§
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