enum IntervalDayError {
TermOverflow {
unit: &'static str,
number: String,
bits: usize,
},
UnitPrecisionMismatch {
unit: &'static str,
unit_precision: SupportedPrecision,
precision: SupportedPrecision,
},
}Variants§
TermOverflow
A term’s number overflows the protobuf field that holds it: days and
seconds are i32, subseconds is i64.
UnitPrecisionMismatch
A sub-second unit that disagrees with the ascribed precision.
Trait Implementations§
Source§impl Clone for IntervalDayError
impl Clone for IntervalDayError
Source§fn clone(&self) -> IntervalDayError
fn clone(&self) -> IntervalDayError
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 moreSource§impl Debug for IntervalDayError
impl Debug for IntervalDayError
Source§impl Display for IntervalDayError
impl Display for IntervalDayError
Source§impl PartialEq for IntervalDayError
impl PartialEq for IntervalDayError
Source§fn eq(&self, other: &IntervalDayError) -> bool
fn eq(&self, other: &IntervalDayError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for IntervalDayError
impl StructuralPartialEq for IntervalDayError
Auto Trait Implementations§
impl Freeze for IntervalDayError
impl RefUnwindSafe for IntervalDayError
impl Send for IntervalDayError
impl Sync for IntervalDayError
impl Unpin for IntervalDayError
impl UnsafeUnpin for IntervalDayError
impl UnwindSafe for IntervalDayError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.