pub enum PrintfError {
ParseError,
WrongType,
TooManyArgs,
NotEnoughArgs,
Unknown,
}
Expand description
Error type
Variants§
ParseError
Error parsing the format string
WrongType
Incorrect type passed as an argument
TooManyArgs
Too many arguments passed
NotEnoughArgs
Too few arguments passed
Unknown
Other error (should never happen)
Trait Implementations§
Source§impl Clone for PrintfError
impl Clone for PrintfError
Source§fn clone(&self) -> PrintfError
fn clone(&self) -> PrintfError
Returns a copy of the value. Read more
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 PrintfError
impl Debug for PrintfError
Source§impl Display for PrintfError
impl Display for PrintfError
Source§impl Error for PrintfError
impl Error for PrintfError
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 PrintfError
impl PartialEq for PrintfError
impl Copy for PrintfError
impl Eq for PrintfError
impl StructuralPartialEq for PrintfError
Auto Trait Implementations§
impl Freeze for PrintfError
impl RefUnwindSafe for PrintfError
impl Send for PrintfError
impl Sync for PrintfError
impl Unpin for PrintfError
impl UnwindSafe for PrintfError
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