pub trait ChunksExt {
// Required methods
fn parse<T: Type>(&self) -> Result<T, TypeError>;
fn format_sentence(&self) -> String;
fn format_verbatim(&self) -> String;
fn span(&self) -> Range<usize> ⓘ;
fn to_biblatex_string(&self, is_verbatim: bool) -> String;
}
Expand description
Additional methods for chunk slices.
Required Methods§
sourcefn format_sentence(&self) -> String
fn format_sentence(&self) -> String
Format the chunks in sentence case.
sourcefn format_verbatim(&self) -> String
fn format_verbatim(&self) -> String
Format the chunks verbatim.
sourcefn to_biblatex_string(&self, is_verbatim: bool) -> String
fn to_biblatex_string(&self, is_verbatim: bool) -> String
Serialize the chunks into a BibLaTeX string.
There is no difference for BibTeX and BibLaTeX here, so there is only one function applicable to both.
Object Safety§
This trait is not object safe.