pub enum CType {
Void,
Int,
UInt,
Bool,
Char,
Ptr(Box<CType>),
Struct(String),
FnPtr(Vec<CType>, Box<CType>),
Array(Box<CType>, usize),
SizeT,
U8,
LeanObject,
}Expand description
C type representation for code generation.
Variants§
Void
void
Int
int64_t
UInt
uint64_t
Bool
uint8_t (boolean)
Char
char
Ptr(Box<CType>)
Pointer: T*
Struct(String)
Named struct: struct Foo
FnPtr(Vec<CType>, Box<CType>)
Function pointer: ret (*)(params...)
Array(Box<CType>, usize)
Fixed-size array: T[N]
SizeT
size_t
U8
uint8_t
LeanObject
lean_object* — the universal OxiLean object type
Trait Implementations§
impl Eq for CType
impl StructuralPartialEq for CType
Auto Trait Implementations§
impl Freeze for CType
impl RefUnwindSafe for CType
impl Send for CType
impl Sync for CType
impl Unpin for CType
impl UnsafeUnpin for CType
impl UnwindSafe for CType
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