pub struct FormatDescriptionV3<'a> { /* private fields */ }Available on crate features
formatting or parsing only.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> ⓘ
Available on crate feature alloc only.
pub fn to_owned(self) -> FormatDescriptionV3<'static> ⓘ
alloc only.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>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FormatDescriptionV3<'_>
impl Debug for FormatDescriptionV3<'_>
impl Formattable for FormatDescriptionV3<'_>
Available on crate feature
formatting only.impl Parsable for FormatDescriptionV3<'_>
Available on crate feature
parsing only.Auto Trait Implementations§
impl<'a> Freeze 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>
impl<'a> UnwindSafe for FormatDescriptionV3<'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