pub struct NoFormatting;Expand description
A pre-implemented formatter for having no formatting at all. No linefeeds, no indenting at all.
You want no linefeeds, no indenting at all, this is your formatter! Suitable use cases may be to generate a pure HTML file, which will only read by browsers for pure optimization.
Trait Implementations§
Source§impl Debug for NoFormatting
impl Debug for NoFormatting
Source§impl Formatter for NoFormatting
impl Formatter for NoFormatting
Source§fn new() -> NoFormatting
fn new() -> NoFormatting
New type pattern as default for constructing any kind of
Formatter. The crate’s default
indenting step size DEFAULT_INDENT shall be set after calling this method.Source§fn check(&mut self, _: &SequenceState) -> FormatChanges
fn check(&mut self, _: &SequenceState) -> FormatChanges
The core function of this crate’s general concept. It shall check for optional format
changes between the last inserted tag and the next one, before it will get inserted into
the document under edit.
Source§fn set_indent_step_size(&mut self, _step_size: usize)
fn set_indent_step_size(&mut self, _step_size: usize)
Modify and set the indenting-step-size. Default is
DEFAULT_INDENT.Source§fn get_indent_step_size(&self) -> usize
fn get_indent_step_size(&self) -> usize
Returns the current indenting-step-size.
Source§fn optional_fixed_ruleset(&mut self) -> Option<&mut dyn FixedRuleset>
fn optional_fixed_ruleset(&mut self) -> Option<&mut dyn FixedRuleset>
Returns a mutable reference to itself, if the features described by the
FixedRuleset are
supported by the formatter.Source§fn reset_to_defaults(&mut self)
fn reset_to_defaults(&mut self)
Whatever may configurable and may have been re-configured, this function shall reset all
configurable properties back to their defaults.
Auto Trait Implementations§
impl Freeze for NoFormatting
impl RefUnwindSafe for NoFormatting
impl Send for NoFormatting
impl Sync for NoFormatting
impl Unpin for NoFormatting
impl UnwindSafe for NoFormatting
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