[−][src]Struct biblatex::Bibliography
A fully parsed bibliography.
Implementations
impl Bibliography
[src]
pub fn new() -> Self
[src]
Get a new, empty Bibliography
pub fn from_str(src: &str, allow_bibtex: bool) -> Self
[src]
Parse a bibliography from a source string.
pub fn from_raw(raw: RawBibliography<'_>) -> Self
[src]
Parse a bibliography from a raw bibliography.
pub fn get(&self, cite_key: &str) -> Option<&Entry>
[src]
Try to find an entry with the given cite key.
pub fn get_mut(&mut self, cite_key: &str) -> Option<&mut Entry>
[src]
Try to find an entry with the given cite key and return a mutable reference.
pub fn get_resolved(&mut self, cite_key: &str) -> Option<Entry>
[src]
Try to find an entry with the given cite key and return an Entry
with all crossref
and xdata
dependencies resolved.
pub fn add(&mut self, entry: Entry) -> Result<()>
[src]
Add a new entry of that type to the bibliography if the cite key is not already in use.
pub fn add_empty(
&mut self,
cite_key: &str,
entry_type: EntryType
) -> Result<&mut Entry>
[src]
&mut self,
cite_key: &str,
entry_type: EntryType
) -> Result<&mut Entry>
Add a new entry of that type to the bibliography if the cite key is not already in use.
pub fn add_alias(&mut self, cite_key: &str, alias: &str) -> Result<()>
[src]
Will add an alias for a cite key if that alias is not yet in use
pub fn remove_item(&mut self, cite_key: &str) -> Result<Entry>
[src]
pub fn len(&self) -> usize
[src]
Get the amount of bibliography items.
pub fn iter<'a>(&'a self) -> Iter<'a, Entry>
[src]
An iterator over the bibliography's entries.
pub fn as_biblatex_string(&mut self) -> String
[src]
Will output the entry as a BibLaTeX string
Trait Implementations
impl Clone for Bibliography
[src]
fn clone(&self) -> Bibliography
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Bibliography
[src]
impl IntoIterator for Bibliography
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<I> IntoIterator for I where
I: Iterator,
[src]
I: Iterator,
type Item = <I as Iterator>::Item
The type of the elements being iterated over.
type IntoIter = I
Which kind of iterator are we turning this into?
fn into_iter(self) -> I
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,