Struct nom_bibtex::model::Bibliography
source · pub struct Bibliography { /* private fields */ }
Expand description
This is the main representation of a bibliography.
Implementations§
source§impl Bibliography
impl Bibliography
sourcepub fn new(
entry_type: String,
citation_key: String,
tags: HashMap<String, String>
) -> Bibliography
pub fn new( entry_type: String, citation_key: String, tags: HashMap<String, String> ) -> Bibliography
Create a new bibliography.
sourcepub fn entry_type(&self) -> &str
pub fn entry_type(&self) -> &str
Get the entry type.
It represents the type of the publications such as article, book, …
sourcepub fn citation_key(&self) -> &str
pub fn citation_key(&self) -> &str
Get the citation key.
The citation key is the the keyword used to reference the bibliography in a LaTeX file for example.
Get the tags.
Tags are the specifics information about a bibliography such as author, date, title, …
The keys in the HashMap use lowercase.
Trait Implementations§
source§impl Debug for Bibliography
impl Debug for Bibliography
source§impl PartialEq<Bibliography> for Bibliography
impl PartialEq<Bibliography> for Bibliography
source§fn eq(&self, other: &Bibliography) -> bool
fn eq(&self, other: &Bibliography) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for Bibliography
impl StructuralEq for Bibliography
impl StructuralPartialEq for Bibliography
Auto Trait Implementations§
impl RefUnwindSafe for Bibliography
impl Send for Bibliography
impl Sync for Bibliography
impl Unpin 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