pub enum FormatPart {
Literal(String),
Directive(FormatDirective),
}Expand description
One piece of a format: something the source writes literally, or one of the things the format says.
Variants§
Literal(String)
Text the value carries as it stands — a slash, a dash, a space, a T.
Directive(FormatDirective)
One of the values the format reads.
Trait Implementations§
Source§impl Clone for FormatPart
impl Clone for FormatPart
Source§fn clone(&self) -> FormatPart
fn clone(&self) -> FormatPart
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FormatPart
impl Debug for FormatPart
impl Eq for FormatPart
Source§impl PartialEq for FormatPart
impl PartialEq for FormatPart
impl StructuralPartialEq for FormatPart
Auto Trait Implementations§
impl Freeze for FormatPart
impl RefUnwindSafe for FormatPart
impl Send for FormatPart
impl Sync for FormatPart
impl Unpin for FormatPart
impl UnsafeUnpin for FormatPart
impl UnwindSafe for FormatPart
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