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§
Source§impl<'s, V: FormatArgument> Display for Segment<'s, V>
impl<'s, V: FormatArgument> Display for Segment<'s, V>
impl<'s, V: Copy + FormatArgument> Copy for Segment<'s, V>
impl<'s, V: FormatArgument> StructuralPartialEq for Segment<'s, V>
Auto Trait Implementations§
impl<'s, V> Freeze for Segment<'s, V>
impl<'s, V> RefUnwindSafe for Segment<'s, V>where
V: RefUnwindSafe,
impl<'s, V> Send for Segment<'s, V>where
V: Sync,
impl<'s, V> Sync for Segment<'s, V>where
V: Sync,
impl<'s, V> Unpin for Segment<'s, V>
impl<'s, V> UnwindSafe for Segment<'s, V>where
V: RefUnwindSafe,
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