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
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.name: &'static str
Name of the component.
minimum: i64
Minimum allowed value, inclusive.
maximum: i64
Maximum allowed value, inclusive.
value: i64
Value that was provided.
conditional_range: bool
The minimum and/or maximum value is conditional on the value of other parameters.
Trait Implementations
Performs the conversion.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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
Mutably borrows from an owned value. Read more