pub enum Segment<'s, V: FormatArgument> {
Text(&'s str),
Substitution(Substitution<'s, V>),
}Expand description
A single segment of a formatting string.
Variants
Text(&'s str)
Text to be sent to the formatter.
Substitution(Substitution<'s, V>)
A value ready to be formatted.
Trait Implementations
Auto Trait Implementations
impl<'s, V> RefUnwindSafe for Segment<'s, V> where
V: RefUnwindSafe,
impl<'s, V> UnwindSafe for Segment<'s, V> where
V: RefUnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more