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 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
This is supported on crate feature
std only.This is supported on crate feature
serde only.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 ComponentRangeimpl Send for ComponentRangeimpl Sync for ComponentRangeimpl Unpin for ComponentRangeimpl UnwindSafe for ComponentRangeBlanket Implementations
Mutably borrows from an owned value. Read more