pub struct FormatDescriptionV3<'a> { /* private fields */ }Expand description
A complete description of how to format and parse a type.
Both for forwards compatibility and to enable optimizations, this type is deliberately opaque
and cannot be constructed by users of the crate. Instead, it is returned by the
format_description! macro (when version=3 is used) as well as the parse_borrowed and
parse_owned methods.
Implementations§
Source§impl FormatDescriptionV3<'_>
impl FormatDescriptionV3<'_>
Sourcepub fn to_owned(self) -> FormatDescriptionV3<'static>
pub fn to_owned(self) -> FormatDescriptionV3<'static>
Convert the format description to an owned version, enabling it to be stored without regard for lifetime.
Trait Implementations§
Source§impl<'a> Clone for FormatDescriptionV3<'a>
impl<'a> Clone for FormatDescriptionV3<'a>
Source§impl Debug for FormatDescriptionV3<'_>
impl Debug for FormatDescriptionV3<'_>
impl Formattable for FormatDescriptionV3<'_>
impl Parsable for FormatDescriptionV3<'_>
Auto Trait Implementations§
impl<'a> Forget for FormatDescriptionV3<'a>
impl<'a> Freeze for FormatDescriptionV3<'a>where
NonZero<u16>: Freeze,
&'a str: Freeze,
&'a [FormatDescriptionV3Inner<'a>]: Freeze,
&'a FormatDescriptionV3Inner<'a>: Freeze,
*const str is !null: Freeze,
PhantomData<str>: Freeze,
*const [FormatDescriptionV3Inner<'a>] is !null: Freeze,
PhantomData<[FormatDescriptionV3Inner<'a>]>: Freeze,
*const FormatDescriptionV3Inner<'a> is !null: Freeze,
PhantomData<FormatDescriptionV3Inner<'a>>: Freeze,
impl<'a> Move for FormatDescriptionV3<'a>
impl<'a> RefUnwindSafe for FormatDescriptionV3<'a>
impl<'a> Send for FormatDescriptionV3<'a>
impl<'a> Sync for FormatDescriptionV3<'a>
impl<'a> Unpin for FormatDescriptionV3<'a>
impl<'a> UnsafeUnpin for FormatDescriptionV3<'a>where
NonZeroU16Inner: UnsafeUnpin,
&'a str: UnsafeUnpin,
&'a [FormatDescriptionV3Inner<'a>]: UnsafeUnpin,
&'a FormatDescriptionV3Inner<'a>: UnsafeUnpin,
*const str is !null: UnsafeUnpin,
PhantomData<str>: UnsafeUnpin,
*const [FormatDescriptionV3Inner<'a>] is !null: UnsafeUnpin,
PhantomData<[FormatDescriptionV3Inner<'a>]>: UnsafeUnpin,
*const FormatDescriptionV3Inner<'a> is !null: UnsafeUnpin,
PhantomData<FormatDescriptionV3Inner<'a>>: UnsafeUnpin,
impl<'a> UnwindSafe for FormatDescriptionV3<'a>where
NonZero<u16>: UnwindSafe,
&'a str: UnwindSafe,
&'a [FormatDescriptionV3Inner<'a>]: UnwindSafe,
&'a FormatDescriptionV3Inner<'a>: UnwindSafe,
BoxRaw<str>: UnwindSafe,
BoxRaw<[FormatDescriptionV3Inner<'a>]>: UnwindSafe,
BoxRaw<FormatDescriptionV3Inner<'a>>: UnwindSafe,
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