pub enum NumericBehavior {
NonNumeric,
NumberIsInteger,
NumberIsFloat,
}
Expand description
Helper enum that is used in some situations to describe the behavior of arguments in a numeric context.
Variants§
NonNumeric
This argument is not numeric.
NumberIsInteger
This argument is an integer.
NumberIsFloat
This argument is a floating point value.
Trait Implementations§
source§impl Clone for NumericBehavior
impl Clone for NumericBehavior
source§fn clone(&self) -> NumericBehavior
fn clone(&self) -> NumericBehavior
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for NumericBehavior
impl Debug for NumericBehavior
source§impl PartialEq for NumericBehavior
impl PartialEq for NumericBehavior
impl Copy for NumericBehavior
impl Eq for NumericBehavior
impl StructuralPartialEq for NumericBehavior
Auto Trait Implementations§
impl Freeze for NumericBehavior
impl RefUnwindSafe for NumericBehavior
impl Send for NumericBehavior
impl Sync for NumericBehavior
impl Unpin for NumericBehavior
impl UnwindSafe for NumericBehavior
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)