Enum oo_bindgen::model::NumberValue
source · #[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<NumberValue> for NumberValue
impl PartialEq<NumberValue> for NumberValue
source§fn eq(&self, other: &NumberValue) -> bool
fn eq(&self, other: &NumberValue) -> bool
This method tests for
self and other values to be equal, and is used
by ==.