Struct time::error::ComponentRange [−][src]
#[non_exhaustive]pub struct ComponentRange { pub name: &'static str, pub minimum: i64, pub maximum: i64, pub value: i64, pub conditional_range: bool, }
Expand description
An error type indicating that a component provided to a method was out of range, causing a failure.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: &'static strName of the component.
minimum: i64Minimum allowed value, inclusive.
maximum: i64Maximum allowed value, inclusive.
value: i64Value that was provided.
conditional_range: boolThe minimum and/or maximum value is conditional on the value of other parameters.
Trait Implementations
impl Clone for ComponentRange[src]
impl Clone for ComponentRange[src]fn clone(&self) -> ComponentRange[src]
fn clone(&self) -> ComponentRange[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
impl Debug for ComponentRange[src]
impl Debug for ComponentRange[src]impl Display for ComponentRange[src]
impl Display for ComponentRange[src]impl Error for ComponentRange[src]
impl Error for ComponentRange[src]std only.fn source(&self) -> Option<&(dyn Error + 'static)>1.30.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>1.30.0[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>[src]
fn backtrace(&self) -> Option<&Backtrace>[src]backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str1.0.0[src]
fn description(&self) -> &str1.0.0[src]use the Display impl or to_string()
impl Expected for ComponentRange[src]
impl Expected for ComponentRange[src]serde only.impl From<ComponentRange> for Error[src]
impl From<ComponentRange> for Error[src]fn from(original: ComponentRange) -> Self[src]
fn from(original: ComponentRange) -> Self[src]Performs the conversion.
impl From<ComponentRange> for TryFromParsed[src]
impl From<ComponentRange> for TryFromParsed[src]fn from(v: ComponentRange) -> Self[src]
fn from(v: ComponentRange) -> Self[src]Performs the conversion.
impl Hash for ComponentRange[src]
impl Hash for ComponentRange[src]impl PartialEq<ComponentRange> for ComponentRange[src]
impl PartialEq<ComponentRange> for ComponentRange[src]fn eq(&self, other: &ComponentRange) -> bool[src]
fn eq(&self, other: &ComponentRange) -> bool[src]This method tests for self and other values to be equal, and is used
by ==. Read more
fn ne(&self, other: &ComponentRange) -> bool[src]
fn ne(&self, other: &ComponentRange) -> bool[src]This method tests for !=.
impl Copy for ComponentRange[src]
impl Eq for ComponentRange[src]
impl StructuralEq for ComponentRange[src]
impl StructuralPartialEq for ComponentRange[src]
Auto Trait Implementations
impl RefUnwindSafe for ComponentRange
impl Send for ComponentRange
impl Sync for ComponentRange
impl Unpin for ComponentRange
impl UnwindSafe for ComponentRange
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more