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ยง
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 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