#[non_exhaustive]pub enum Extent {
Values(Vec<String>),
Range {
lo: String,
hi: String,
},
}Expand description
The cells a slice over an argument enumerates (7, spec-0.4.0): the argument
declaration’s optional extent.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Values(Vec<String>)
Lexical values of the argument’s type, strictly ascending in the type’s order (numbers numerically, dates and instants chronologically, strings by code point); at most 4096.
Range
For a date or number argument, every date (or every integer) from lo to hi,
inclusive; number ends are integers, and lo <= hi.
Implementations§
Trait Implementations§
impl Eq for Extent
impl StructuralPartialEq for Extent
Auto Trait Implementations§
impl Freeze for Extent
impl RefUnwindSafe for Extent
impl Send for Extent
impl Sync for Extent
impl Unpin for Extent
impl UnsafeUnpin for Extent
impl UnwindSafe for Extent
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