Enum interoptopus::lang::c::PrimitiveValue
source · [−]pub enum PrimitiveValue {
Bool(bool),
U8(u8),
U16(u16),
U32(u32),
U64(u64),
I8(i8),
I16(i16),
I32(i32),
I64(i64),
F32(f32),
F64(f64),
}
Expand description
A primitive value expressible on C-level.
Variants
Bool(bool)
U8(u8)
U16(u16)
U32(u32)
U64(u64)
I8(i8)
I16(i16)
I32(i32)
I64(i64)
F32(f32)
F64(f64)
Trait Implementations
sourceimpl Clone for PrimitiveValue
impl Clone for PrimitiveValue
sourcefn clone(&self) -> PrimitiveValue
fn clone(&self) -> PrimitiveValue
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PrimitiveValue
impl Debug for PrimitiveValue
sourceimpl PartialEq<PrimitiveValue> for PrimitiveValue
impl PartialEq<PrimitiveValue> for PrimitiveValue
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &PrimitiveValue) -> bool
fn ne(&self, other: &PrimitiveValue) -> bool
This method tests for !=
.
sourceimpl PartialOrd<PrimitiveValue> for PrimitiveValue
impl PartialOrd<PrimitiveValue> for PrimitiveValue
sourcefn partial_cmp(&self, other: &PrimitiveValue) -> Option<Ordering>
fn partial_cmp(&self, other: &PrimitiveValue) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl StructuralPartialEq for PrimitiveValue
Auto Trait Implementations
impl RefUnwindSafe for PrimitiveValue
impl Send for PrimitiveValue
impl Sync for PrimitiveValue
impl Unpin for PrimitiveValue
impl UnwindSafe for PrimitiveValue
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more