pub struct Attribution {
pub label: String,
pub source: Option<Source>,
pub references: usize,
pub definitions: usize,
}Expand description
A body claim attributed to a source, produced by joining footnote labels to
sources[].id.
Fields§
§label: StringThe footnote label, which is the join key.
source: Option<Source>The matching sources entry, or None when the label names no source.
references: usizeHow many times the body cites this label.
definitions: usizeHow many [^label]: … definition lines the body carries for it.
Implementations§
Source§impl Attribution
impl Attribution
Sourcepub const fn is_resolved(&self) -> bool
pub const fn is_resolved(&self) -> bool
true when the label resolves to a sources entry.
Trait Implementations§
Source§impl Clone for Attribution
impl Clone for Attribution
Source§fn clone(&self) -> Attribution
fn clone(&self) -> Attribution
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 Debug for Attribution
impl Debug for Attribution
impl Eq for Attribution
Source§impl PartialEq for Attribution
impl PartialEq for Attribution
impl StructuralPartialEq for Attribution
Auto Trait Implementations§
impl Freeze for Attribution
impl RefUnwindSafe for Attribution
impl Send for Attribution
impl Sync for Attribution
impl Unpin for Attribution
impl UnsafeUnpin for Attribution
impl UnwindSafe for Attribution
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