pub enum FormatValueError {
MismatchedType,
ValueOutOfRange,
}Expand description
Errors that can occur when formatting an Arg for a ConversionSpec.
Variants§
MismatchedType
The conversion specifier and argument types are incompatible.
ValueOutOfRange
The argument value exceeds the valid range for the conversion specifier or target platform type.
Trait Implementations§
Source§impl Clone for FormatValueError
impl Clone for FormatValueError
Source§fn clone(&self) -> FormatValueError
fn clone(&self) -> FormatValueError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FormatValueError
Source§impl Debug for FormatValueError
impl Debug for FormatValueError
Source§impl Display for FormatValueError
impl Display for FormatValueError
impl Eq for FormatValueError
Source§impl Error for FormatValueError
impl Error for FormatValueError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for FormatValueError
impl PartialEq for FormatValueError
impl StructuralPartialEq for FormatValueError
Auto Trait Implementations§
impl Freeze for FormatValueError
impl RefUnwindSafe for FormatValueError
impl Send for FormatValueError
impl Sync for FormatValueError
impl Unpin for FormatValueError
impl UnsafeUnpin for FormatValueError
impl UnwindSafe for FormatValueError
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