Enum irox_types::PrimitiveValue
source · #[non_exhaustive]pub enum PrimitiveValue {
}Expand description
A shuttle struct to pass around a primitive type and an associated value of the same type
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.
u8(u8)
i8(i8)
u16(u16)
i16(i16)
u32(u32)
i32(i32)
f32(f32)
u64(u64)
i64(i64)
f64(f64)
u128(u128)
i128(i128)
bool(bool)
char(char)
null
Implementations§
source§impl PrimitiveValue
impl PrimitiveValue
pub fn iter_names() -> impl Iterator<Item = &'static str>
source§impl PrimitiveValue
impl PrimitiveValue
sourcepub const fn primitive(&self) -> Primitives
pub const fn primitive(&self) -> Primitives
Returns the type of this primitive
Trait Implementations§
source§impl Clone for PrimitiveValue
impl Clone for PrimitiveValue
source§fn clone(&self) -> PrimitiveValue
fn clone(&self) -> PrimitiveValue
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 PrimitiveValue
impl Debug for PrimitiveValue
source§impl From<PrimitiveValue> for VariableValue
impl From<PrimitiveValue> for VariableValue
source§fn from(value: PrimitiveValue) -> Self
fn from(value: PrimitiveValue) -> Self
Converts to this type from the input type.
source§impl PartialEq for PrimitiveValue
impl PartialEq for PrimitiveValue
source§fn eq(&self, other: &PrimitiveValue) -> bool
fn eq(&self, other: &PrimitiveValue) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl ToString for PrimitiveValue
impl ToString for PrimitiveValue
impl Copy for PrimitiveValue
impl StructuralPartialEq for PrimitiveValue
Auto Trait Implementations§
impl Freeze for PrimitiveValue
impl RefUnwindSafe for PrimitiveValue
impl Send for PrimitiveValue
impl Sync for PrimitiveValue
impl Unpin for PrimitiveValue
impl UnwindSafe for PrimitiveValue
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