#[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
Sourcepub const fn primitive(&self) -> Primitives
pub const fn primitive(&self) -> Primitives
Returns the type of this primitive
pub fn as_be_bytes(&self) -> Box<[u8]>
Trait Implementations§
Source§impl Clone for PrimitiveValue
impl Clone for PrimitiveValue
Source§fn clone(&self) -> PrimitiveValue
fn clone(&self) -> PrimitiveValue
Returns a duplicate 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 Display for PrimitiveValue
impl Display for PrimitiveValue
Source§impl From<()> for PrimitiveValue
impl From<()> 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 From<bool> for PrimitiveValue
impl From<bool> for PrimitiveValue
Source§impl From<char> for PrimitiveValue
impl From<char> for PrimitiveValue
Source§impl From<f32> for PrimitiveValue
impl From<f32> for PrimitiveValue
Source§impl From<f64> for PrimitiveValue
impl From<f64> for PrimitiveValue
Source§impl From<i128> for PrimitiveValue
impl From<i128> for PrimitiveValue
Source§impl From<i16> for PrimitiveValue
impl From<i16> for PrimitiveValue
Source§impl From<i32> for PrimitiveValue
impl From<i32> for PrimitiveValue
Source§impl From<i64> for PrimitiveValue
impl From<i64> for PrimitiveValue
Source§impl From<i8> for PrimitiveValue
impl From<i8> for PrimitiveValue
Source§impl From<u128> for PrimitiveValue
impl From<u128> for PrimitiveValue
Source§impl From<u16> for PrimitiveValue
impl From<u16> for PrimitiveValue
Source§impl From<u32> for PrimitiveValue
impl From<u32> for PrimitiveValue
Source§impl From<u64> for PrimitiveValue
impl From<u64> for PrimitiveValue
Source§impl From<u8> for PrimitiveValue
impl From<u8> for PrimitiveValue
Source§impl Hash for PrimitiveValue
impl Hash for PrimitiveValue
Source§impl PartialEq for PrimitiveValue
impl PartialEq 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