Enum interoptopus::lang::c::PrimitiveType
source ยท pub enum PrimitiveType {
Void,
Bool,
U8,
U16,
U32,
U64,
I8,
I16,
I32,
I64,
F32,
F64,
}
Expand description
A primitive type that natively exists in C and is FFI safe.
Variantsยง
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 Hash for PrimitiveType
impl Hash for PrimitiveType
sourceยงimpl Ord for PrimitiveType
impl Ord for PrimitiveType
sourceยงfn cmp(&self, other: &PrimitiveType) -> Ordering
fn cmp(&self, other: &PrimitiveType) -> Ordering
1.21.0 ยท sourceยงfn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
sourceยงimpl PartialEq for PrimitiveType
impl PartialEq for PrimitiveType
sourceยงimpl PartialOrd for PrimitiveType
impl PartialOrd for PrimitiveType
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: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
)