#[non_exhaustive]pub enum NumberValue {
U8(u8),
S8(i8),
U16(u16),
S16(i16),
U32(u32),
S32(i32),
U64(u64),
S64(i64),
Float(f32),
Double(f64),
}
Expand description
A numeric value
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.
Trait Implementations§
Source§impl Clone for NumberValue
impl Clone for NumberValue
Source§fn clone(&self) -> NumberValue
fn clone(&self) -> NumberValue
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 NumberValue
impl Debug for NumberValue
Source§impl Display for NumberValue
impl Display for NumberValue
Source§impl From<NumberValue> for InitializerDefault
impl From<NumberValue> for InitializerDefault
Source§fn from(x: NumberValue) -> Self
fn from(x: NumberValue) -> Self
Converts to this type from the input type.
Source§impl From<NumberValue> for ValidatedDefaultValue
impl From<NumberValue> for ValidatedDefaultValue
Source§fn from(x: NumberValue) -> Self
fn from(x: NumberValue) -> Self
Converts to this type from the input type.
Source§impl PartialEq for NumberValue
impl PartialEq for NumberValue
impl Copy for NumberValue
impl StructuralPartialEq for NumberValue
Auto Trait Implementations§
impl Freeze for NumberValue
impl RefUnwindSafe for NumberValue
impl Send for NumberValue
impl Sync for NumberValue
impl Unpin for NumberValue
impl UnwindSafe for NumberValue
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