pub enum DateFormatError {
UnknownDirective(char),
DanglingPercent,
Empty,
}Expand description
What is wrong with a format, in the words the refusal uses.
Variants§
UnknownDirective(char)
A % followed by a letter no format directive uses.
DanglingPercent
A % with nothing after it.
Empty
A format saying nothing at all.
Trait Implementations§
Source§impl Clone for DateFormatError
impl Clone for DateFormatError
Source§impl Debug for DateFormatError
impl Debug for DateFormatError
Source§impl Display for DateFormatError
impl Display for DateFormatError
impl Eq for DateFormatError
Source§impl Error for DateFormatError
impl Error for DateFormatError
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 DateFormatError
impl PartialEq for DateFormatError
impl StructuralPartialEq for DateFormatError
Auto Trait Implementations§
impl Forget for DateFormatError
impl Freeze for DateFormatError
impl Move for DateFormatError
impl RefUnwindSafe for DateFormatError
impl Send for DateFormatError
impl Sync for DateFormatError
impl Unpin for DateFormatError
impl UnsafeUnpin for DateFormatError
impl UnwindSafe for DateFormatError
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