pub(super) enum Item<'a> {
Literal(&'a [u8]),
Component(Component),
Optional {
value: Box<[Self]>,
span: Span,
},
First {
value: Box<[Box<[Self]>]>,
span: Span,
},
}
Expand description
A description of how to format and parse one part of a type.
Variants§
Literal(&'a [u8])
A literal string.
Component(Component)
Part of a type, along with its modifiers.
Optional
A sequence of optional items.
First
The first matching parse of a sequence of format descriptions.
Implementations§
Trait Implementations§
source§impl From<Item<'_>> for OwnedFormatItem
impl From<Item<'_>> for OwnedFormatItem
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