pub struct SecondOutOfRange(pub u8);Expand description
Error for when the second part of a time expression is out of range.
use chinese_format::gregorian::*;
assert_eq!(
SecondOutOfRange(90).to_string(),
"Second out of range: 90"
);Tuple Fields§
§0: u8Trait Implementations§
Source§impl Clone for SecondOutOfRange
impl Clone for SecondOutOfRange
Source§fn clone(&self) -> SecondOutOfRange
fn clone(&self) -> SecondOutOfRange
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 SecondOutOfRange
impl Debug for SecondOutOfRange
Source§impl Display for SecondOutOfRange
impl Display for SecondOutOfRange
Source§impl Error for SecondOutOfRange
impl Error for SecondOutOfRange
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 SecondOutOfRange
impl Hash for SecondOutOfRange
Source§impl Ord for SecondOutOfRange
impl Ord for SecondOutOfRange
Source§impl PartialEq for SecondOutOfRange
impl PartialEq for SecondOutOfRange
Source§impl PartialOrd for SecondOutOfRange
impl PartialOrd for SecondOutOfRange
impl Copy for SecondOutOfRange
impl Eq for SecondOutOfRange
impl StructuralPartialEq for SecondOutOfRange
Auto Trait Implementations§
impl Freeze for SecondOutOfRange
impl RefUnwindSafe for SecondOutOfRange
impl Send for SecondOutOfRange
impl Sync for SecondOutOfRange
impl Unpin for SecondOutOfRange
impl UnwindSafe for SecondOutOfRange
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)