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§
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 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 PartialOrd for PrimitiveValue
impl PartialOrd for PrimitiveValue
source§fn partial_cmp(&self, other: &PrimitiveValue) -> Option<Ordering>
fn partial_cmp(&self, other: &PrimitiveValue) -> Option<Ordering>
1.0.0 · source§fn 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 moreimpl 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§
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