pub struct PrettyFormatter {}Expand description
A formatter which outputs with normal whitespace and does not check for valid BibTeX.
Implementations§
Source§impl PrettyFormatter
impl PrettyFormatter
Sourcepub fn validate(self) -> ValidatingFormatter<PrettyFormatter>
pub fn validate(self) -> ValidatingFormatter<PrettyFormatter>
Return a formatter with the same output, except that also validates the generated BibTeX.
Trait Implementations§
Source§impl Formatter for PrettyFormatter
impl Formatter for PrettyFormatter
Source§fn write_entry_separator<W>(&mut self, writer: &mut W) -> Result<()>
fn write_entry_separator<W>(&mut self, writer: &mut W) -> Result<()>
The separator between consecutive entries.
Source§fn write_regular_entry_type<W>(
&mut self,
writer: &mut W,
entry_type: &str,
) -> Result<()>
fn write_regular_entry_type<W>( &mut self, writer: &mut W, entry_type: &str, ) -> Result<()>
Write the entry type, including the
@ symbol.Source§fn write_macro_entry_type<W>(&mut self, writer: &mut W) -> Result<()>
fn write_macro_entry_type<W>(&mut self, writer: &mut W) -> Result<()>
Write the macro entry type, including the
@ symbol.Source§fn write_comment_entry_type<W>(&mut self, writer: &mut W) -> Result<()>
fn write_comment_entry_type<W>(&mut self, writer: &mut W) -> Result<()>
Write the comment entry type, including the
@ symbol.Source§fn write_preamble_entry_type<W>(&mut self, writer: &mut W) -> Result<()>
fn write_preamble_entry_type<W>(&mut self, writer: &mut W) -> Result<()>
Write the preamble entry type, including the
@ symbol.Source§fn write_body_start<W>(&mut self, writer: &mut W) -> Result<()>
fn write_body_start<W>(&mut self, writer: &mut W) -> Result<()>
Write the body start character, typically
{.Source§fn write_entry_key_end<W>(&mut self, writer: &mut W) -> Result<()>
fn write_entry_key_end<W>(&mut self, writer: &mut W) -> Result<()>
Write the terminator for an entry key, often
,\n.Source§fn write_field_start<W>(&mut self, writer: &mut W) -> Result<()>
fn write_field_start<W>(&mut self, writer: &mut W) -> Result<()>
Write the start of a field, such as indentation
.Source§fn write_field_separator<W>(&mut self, writer: &mut W) -> Result<()>
fn write_field_separator<W>(&mut self, writer: &mut W) -> Result<()>
Write a field separator, such as
=.Source§fn write_token_separator<W>(&mut self, writer: &mut W) -> Result<()>
fn write_token_separator<W>(&mut self, writer: &mut W) -> Result<()>
Write a token separator, such as
#.Source§fn write_bracketed_token<W>(
&mut self,
writer: &mut W,
token: &str,
) -> Result<()>
fn write_bracketed_token<W>( &mut self, writer: &mut W, token: &str, ) -> Result<()>
Write a bracketed token
{text}.Source§fn write_variable_token<W>(
&mut self,
writer: &mut W,
variable: &str,
) -> Result<()>
fn write_variable_token<W>( &mut self, writer: &mut W, variable: &str, ) -> Result<()>
Write a variable token
text.Source§fn write_field_end<W>(&mut self, writer: &mut W) -> Result<()>
fn write_field_end<W>(&mut self, writer: &mut W) -> Result<()>
Write the terminator for a field, often
,\n.Auto Trait Implementations§
impl Freeze for PrettyFormatter
impl RefUnwindSafe for PrettyFormatter
impl Send for PrettyFormatter
impl Sync for PrettyFormatter
impl Unpin for PrettyFormatter
impl UnsafeUnpin for PrettyFormatter
impl UnwindSafe for PrettyFormatter
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