#[non_exhaustive]pub enum ValueConstraint {
Between {
min: u64,
max: u64,
},
AllowedBits {
mask: u64,
},
}Expand description
A constraint on a numeric parameter.
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.
Between
The value must be within this inclusive range.
AllowedBits
Only bits present in this mask may be set.
Trait Implementations§
Source§impl Clone for ValueConstraint
impl Clone for ValueConstraint
Source§fn clone(&self) -> ValueConstraint
fn clone(&self) -> ValueConstraint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ValueConstraint
Source§impl Debug for ValueConstraint
impl Debug for ValueConstraint
Source§impl Display for ValueConstraint
impl Display for ValueConstraint
impl Eq for ValueConstraint
Source§impl PartialEq for ValueConstraint
impl PartialEq for ValueConstraint
impl StructuralPartialEq for ValueConstraint
Auto Trait Implementations§
impl Freeze for ValueConstraint
impl RefUnwindSafe for ValueConstraint
impl Send for ValueConstraint
impl Sync for ValueConstraint
impl Unpin for ValueConstraint
impl UnsafeUnpin for ValueConstraint
impl UnwindSafe for ValueConstraint
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