pub enum Piece<'input> {
Lit(&'input str),
NextArgument(Box<Argument<'input>>),
}
Expand description
A piece is a portion of the format string which represents the next part
to emit. These are emitted as a stream by the Parser
class.
Variants§
Lit(&'input str)
A literal string which should directly be emitted
NextArgument(Box<Argument<'input>>)
This describes that formatting should process the next argument (as specified inside) for emission.
Trait Implementations§
impl<'input> StructuralPartialEq for Piece<'input>
Auto Trait Implementations§
impl<'input> Freeze for Piece<'input>
impl<'input> RefUnwindSafe for Piece<'input>
impl<'input> Send for Piece<'input>
impl<'input> Sync for Piece<'input>
impl<'input> Unpin for Piece<'input>
impl<'input> UnwindSafe for Piece<'input>
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