#[non_exhaustive]pub enum PrimitiveValue {
Bool(bool),
U8(u8),
S8(i8),
U16(u16),
S16(i16),
U32(u32),
S32(i32),
U64(u64),
S64(i64),
Float(f32),
Double(f64),
}
Expand description
same as primitive, but with a 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.
Bool(bool)
U8(u8)
S8(i8)
U16(u16)
S16(i16)
U32(u32)
S32(i32)
U64(u64)
S64(i64)
Float(f32)
Double(f64)
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 DefaultCallbackReturnValue
impl From<PrimitiveValue> for DefaultCallbackReturnValue
Source§fn from(x: PrimitiveValue) -> Self
fn from(x: PrimitiveValue) -> Self
Converts to this type from the input type.
Source§impl From<PrimitiveValue> for Primitive
impl From<PrimitiveValue> for Primitive
Source§fn from(x: PrimitiveValue) -> Self
fn from(x: PrimitiveValue) -> Self
Converts to this type from the input type.
impl Copy 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