pub struct Citation {
pub url: String,
pub label: String,
pub marker: Option<u32>,
pub form: CitationForm,
pub offset: usize,
}Expand description
One cited link, as found.
Fields§
§url: StringThe href exactly as served, entity-decoded but otherwise untouched.
label: StringThe visible link text, whitespace-collapsed and tag-stripped. Empty for a bare URL and for a footnote definition.
marker: Option<u32>The number when the label is a citation marker such as 1, [1] or [^1].
form: CitationFormThe syntactic form the link was found in.
offset: usizeByte offset of the link’s first character in the input.
Trait Implementations§
impl Eq for Citation
impl StructuralPartialEq for Citation
Auto Trait Implementations§
impl Freeze for Citation
impl RefUnwindSafe for Citation
impl Send for Citation
impl Sync for Citation
impl Unpin for Citation
impl UnsafeUnpin for Citation
impl UnwindSafe for Citation
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