pub struct CompactFormatter {}Expand description
A formatter which outputs with no excess whitespace and does not check for valid BibTeX.
Implementations§
Source§impl CompactFormatter
impl CompactFormatter
Sourcepub fn validate(self) -> ValidatingFormatter<CompactFormatter>
pub fn validate(self) -> ValidatingFormatter<CompactFormatter>
Return a formatter with the same output, except that also validates the generated BibTeX.
Trait Implementations§
Source§impl Formatter for CompactFormatter
impl Formatter for CompactFormatter
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_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_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.Source§fn write_bibliography_end<W>(&mut self, _writer: &mut W) -> Result<()>
fn write_bibliography_end<W>(&mut self, _writer: &mut W) -> Result<()>
Write the terminator for the bibliography, such as a newline.
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_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}.Auto Trait Implementations§
impl Freeze for CompactFormatter
impl RefUnwindSafe for CompactFormatter
impl Send for CompactFormatter
impl Sync for CompactFormatter
impl Unpin for CompactFormatter
impl UnsafeUnpin for CompactFormatter
impl UnwindSafe for CompactFormatter
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