Enum wac_types::PrimitiveType
source · pub enum PrimitiveType {
Show 13 variants
U8,
S8,
U16,
S16,
U32,
S32,
U64,
S64,
F32,
F64,
Char,
Bool,
String,
}Expand description
Represents a primitive type.
Variants§
U8
A u8 type.
S8
A s8 type.
U16
A u16 type.
S16
A s16 type.
U32
A u32 type.
S32
A s32 type.
U64
A u64 type.
S64
A s64 type.
F32
A f32 type.
F64
A f64 type.
Char
A char type.
Bool
A bool type.
String
A string type.
Implementations§
Trait Implementations§
source§impl Clone for PrimitiveType
impl Clone for PrimitiveType
source§fn clone(&self) -> PrimitiveType
fn clone(&self) -> PrimitiveType
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 PrimitiveType
impl Debug for PrimitiveType
source§impl From<PrimitiveType> for PrimitiveValType
impl From<PrimitiveType> for PrimitiveValType
source§fn from(value: PrimitiveType) -> Self
fn from(value: PrimitiveType) -> Self
Converts to this type from the input type.
source§impl From<PrimitiveValType> for PrimitiveType
impl From<PrimitiveValType> for PrimitiveType
source§fn from(value: PrimitiveValType) -> Self
fn from(value: PrimitiveValType) -> Self
Converts to this type from the input type.
source§impl Hash for PrimitiveType
impl Hash for PrimitiveType
source§impl PartialEq for PrimitiveType
impl PartialEq for PrimitiveType
source§fn eq(&self, other: &PrimitiveType) -> bool
fn eq(&self, other: &PrimitiveType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for PrimitiveType
impl Eq for PrimitiveType
impl StructuralPartialEq for PrimitiveType
Auto Trait Implementations§
impl Freeze for PrimitiveType
impl RefUnwindSafe for PrimitiveType
impl Send for PrimitiveType
impl Sync for PrimitiveType
impl Unpin for PrimitiveType
impl UnwindSafe for PrimitiveType
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.