pub enum BuiltinType {
Show 28 variants
Unit,
Bool,
U8,
U16,
U32,
U64,
U128,
I8,
I16,
I32,
I64,
I128,
Char,
SignedChar,
UnsignedChar,
Short,
UnsignedShort,
Int,
UnsignedInt,
Long,
UnsignedLong,
LongLong,
UnsignedLongLong,
F32,
F64,
Float,
Double,
Pointer,
}
Expand description
A builtin type.
This includes both builtin Rust and C types. The Rust types will be treated like the corresponding C types if possible. If the type does not exist on the target, the results might not be meaningful.
Variants§
Unit
()
Bool
bool
U8
u8
U16
u16
U32
u32
U64
u64
U128
u128
I8
i8
I16
i16
I32
i32
I64
i64
I128
i128
Char
c_char
SignedChar
c_schar
UnsignedChar
c_uchar
Short
c_short
UnsignedShort
c_ushort
Int
c_int
UnsignedInt
c_uint
Long
c_long
UnsignedLong
c_ulong
LongLong
c_longlong
UnsignedLongLong
c_ulonglong
F32
f32
F64
f64
Float
c_float
Double
c_double
Pointer
*const T
,*mut T
, &T
, &mut T
for sized T
; fn()
, Option<fn()>
, etc.
Trait Implementations§
Source§impl Clone for BuiltinType
impl Clone for BuiltinType
Source§fn clone(&self) -> BuiltinType
fn clone(&self) -> BuiltinType
Returns a duplicate 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 BuiltinType
impl Debug for BuiltinType
Source§impl PartialEq for BuiltinType
impl PartialEq for BuiltinType
impl Copy for BuiltinType
impl Eq for BuiltinType
impl StructuralPartialEq for BuiltinType
Auto Trait Implementations§
impl Freeze for BuiltinType
impl RefUnwindSafe for BuiltinType
impl Send for BuiltinType
impl Sync for BuiltinType
impl Unpin for BuiltinType
impl UnwindSafe for BuiltinType
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