pub struct Bibliography {
pub style: CitationStyle,
pub entries: Vec<BibliographyEntry>,
}Expand description
A bibliography containing all references cited in a document.
Fields§
§style: CitationStyleCitation style used for formatting.
entries: Vec<BibliographyEntry>Bibliography entries.
Implementations§
Source§impl Bibliography
impl Bibliography
Sourcepub fn new(style: CitationStyle) -> Self
pub fn new(style: CitationStyle) -> Self
Create a new empty bibliography.
Sourcepub fn add_entry(&mut self, entry: BibliographyEntry)
pub fn add_entry(&mut self, entry: BibliographyEntry)
Add an entry to the bibliography.
Sourcepub fn get(&self, id: &str) -> Option<&BibliographyEntry>
pub fn get(&self, id: &str) -> Option<&BibliographyEntry>
Find an entry by its ID.
Trait Implementations§
Source§impl Clone for Bibliography
impl Clone for Bibliography
Source§fn clone(&self) -> Bibliography
fn clone(&self) -> Bibliography
Returns a duplicate of the value. Read more
1.0.0 · 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 Bibliography
impl Debug for Bibliography
Source§impl Default for Bibliography
impl Default for Bibliography
Source§impl<'de> Deserialize<'de> for Bibliography
impl<'de> Deserialize<'de> for Bibliography
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for Bibliography
impl PartialEq for Bibliography
Source§impl Serialize for Bibliography
impl Serialize for Bibliography
impl Eq for Bibliography
impl StructuralPartialEq for Bibliography
Auto Trait Implementations§
impl Freeze for Bibliography
impl RefUnwindSafe for Bibliography
impl Send for Bibliography
impl Sync for Bibliography
impl Unpin for Bibliography
impl UnsafeUnpin for Bibliography
impl UnwindSafe for Bibliography
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.