pub struct Link {
pub target: String,
pub line: Option<usize>,
}Expand description
One link discovered by a parser: its raw target string as it appears in the
source, plus the 1-based source line where it occurs (None when the parser
cannot locate it). The builder handles normalization (fragment stripping,
anchor filtering, URI detection) and aggregates lines onto the edge.
Fields§
§target: String§line: Option<usize>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