Struct nom_bibtex::model::Bibtex
source · 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) -> &[(String, String)]
pub fn variables(&self) -> &[(String, String)]
Get string variables with a tuple of key and expanded value.
sourcepub fn bibliographies(&self) -> &Vec<Bibliography>
pub fn bibliographies(&self) -> &Vec<Bibliography>
Get bibliographies entry with variables expanded.