[][src]Struct biblatex::Bibliography

pub struct Bibliography { /* fields omitted */ }

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]

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]

impl Debug for Bibliography[src]

impl IntoIterator for Bibliography[src]

type Item = Entry

The type of the elements being iterated over.

type IntoIter = IntoIter<Entry>

Which kind of iterator are we turning this into?

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

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?

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.