#[non_exhaustive]pub enum Pattern {
Value(Scalar),
Open,
Range {
lo: Scalar,
hi: Scalar,
},
}Expand description
One argument of a slice pattern (Inputs::read_slice).
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.
Value(Scalar)
Bound to a value.
Open
Open (*): any value.
Range
Within [lo..hi], both ends inclusive, in the type’s order (SPEC 15.13); lo after
hi is empty. Both ends are of the argument’s type: number, date, instant or
string.
Trait Implementations§
impl Eq for Pattern
impl StructuralPartialEq for Pattern
Auto Trait Implementations§
impl Freeze for Pattern
impl RefUnwindSafe for Pattern
impl Send for Pattern
impl Sync for Pattern
impl Unpin for Pattern
impl UnsafeUnpin for Pattern
impl UnwindSafe for Pattern
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