pub enum FormatElement {
Token(&'static str),
Text(TextElement),
Space,
Line(LineMode),
Indent(InternedDocument),
Group(InternedDocument),
BestFit {
flat: InternedDocument,
expanded: InternedDocument,
},
Verbatim(VerbatimText),
}Variants§
Token(&'static str)
Text(TextElement)
Space
Line(LineMode)
Indent(InternedDocument)
Group(InternedDocument)
BestFit
Verbatim(VerbatimText)
Trait Implementations§
Source§impl Clone for FormatElement
impl Clone for FormatElement
Source§fn clone(&self) -> FormatElement
fn clone(&self) -> FormatElement
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FormatElement
impl Debug for FormatElement
Source§impl<Context> Format<Context> for FormatElement
impl<Context> Format<Context> for FormatElement
Source§impl PartialEq for FormatElement
impl PartialEq for FormatElement
impl Eq for FormatElement
impl StructuralPartialEq for FormatElement
Auto Trait Implementations§
impl Freeze for FormatElement
impl RefUnwindSafe for FormatElement
impl Send for FormatElement
impl Sync for FormatElement
impl Unpin for FormatElement
impl UnsafeUnpin for FormatElement
impl UnwindSafe for FormatElement
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