pub enum Item<'a> {
End,
Escape(u8),
Text(&'a bstr),
Field,
Name(&'a bstr),
}
Expand description
Represents a section of a parsed format string.
Variants§
End
End of format string
Escape(u8)
Escaped character, {
or }
Text(&'a bstr)
Plain text component
Field
Field component without a name {}
Name(&'a bstr)
Field component with name or index, e.g. {0}
or {foo}
Trait Implementations§
impl<'a> Copy for Item<'a>
impl<'a> Eq for Item<'a>
impl<'a> StructuralPartialEq for Item<'a>
Auto Trait Implementations§
impl<'a> Freeze for Item<'a>
impl<'a> RefUnwindSafe for Item<'a>
impl<'a> Send for Item<'a>
impl<'a> Sync for Item<'a>
impl<'a> Unpin for Item<'a>
impl<'a> UnwindSafe for Item<'a>
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