pub struct MonthOutOfRange(pub u8);Expand description
Error for when the month part of a date is out of range.
use chinese_format::gregorian::*;
assert_eq!(
MonthOutOfRange(90).to_string(),
"Month out of range: 90"
);Tuple Fields§
§0: u8Trait Implementations§
Source§impl Clone for MonthOutOfRange
impl Clone for MonthOutOfRange
Source§fn clone(&self) -> MonthOutOfRange
fn clone(&self) -> MonthOutOfRange
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MonthOutOfRange
impl Debug for MonthOutOfRange
Source§impl Display for MonthOutOfRange
impl Display for MonthOutOfRange
Source§impl Error for MonthOutOfRange
impl Error for MonthOutOfRange
1.30.0§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§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl Hash for MonthOutOfRange
impl Hash for MonthOutOfRange
Source§impl Ord for MonthOutOfRange
impl Ord for MonthOutOfRange
Source§impl PartialEq for MonthOutOfRange
impl PartialEq for MonthOutOfRange
Source§impl PartialOrd for MonthOutOfRange
impl PartialOrd for MonthOutOfRange
impl Copy for MonthOutOfRange
impl Eq for MonthOutOfRange
impl StructuralPartialEq for MonthOutOfRange
Auto Trait Implementations§
impl Freeze for MonthOutOfRange
impl RefUnwindSafe for MonthOutOfRange
impl Send for MonthOutOfRange
impl Sync for MonthOutOfRange
impl Unpin for MonthOutOfRange
impl UnwindSafe for MonthOutOfRange
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)