pub struct Bibtex { /* private fields */ }Expand description
A high-level definition of a bibtex file.
Implementations§
Source§impl Bibtex
impl Bibtex
Sourcepub fn parse(bibtex: &str) -> Result<Self, BibtexError>
pub fn parse(bibtex: &str) -> Result<Self, BibtexError>
Create a new Bibtex instance from a BibTeX file content.
Sourcepub fn raw_parse(bibtex: &str) -> Result<Vec<Entry>, BibtexError>
pub fn raw_parse(bibtex: &str) -> Result<Vec<Entry>, BibtexError>
Get a raw vector of entries in order from the files.
Sourcepub fn variables(&self) -> &HashMap<String, String>
pub fn variables(&self) -> &HashMap<String, String>
Get string variables with a tuple of key and expanded value.
The keys in the HashMap use lowercase.
Sourcepub fn bibliographies(&self) -> &Vec<Bibliography>
pub fn bibliographies(&self) -> &Vec<Bibliography>
Get bibliographies entry with variables expanded.
Trait Implementations§
impl Eq for Bibtex
impl StructuralPartialEq for Bibtex
Auto Trait Implementations§
impl Freeze for Bibtex
impl RefUnwindSafe for Bibtex
impl Send for Bibtex
impl Sync for Bibtex
impl Unpin for Bibtex
impl UnwindSafe for Bibtex
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