pub struct Format {
pub format: LitStr,
pub format_args: Punctuated<Expr, Comma>,
}Expand description
The format string for an error’s Display implementation.
Fields§
§format: LitStrThe format string of the error variant.
format_args: Punctuated<Expr, Comma>The format arguments of the error variant.
Trait Implementations§
impl Eq for Format
impl StructuralPartialEq for Format
Auto Trait Implementations§
impl Freeze for Format
impl RefUnwindSafe for Format
impl !Send for Format
impl !Sync for Format
impl Unpin for Format
impl UnwindSafe for Format
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