pub enum CConstruct {
RawPointer {
is_const: bool,
pointee: String,
},
Array {
element: String,
size: Option<usize>,
},
String {
is_const: bool,
},
Struct {
name: String,
has_pointers: bool,
},
Union {
name: String,
},
FunctionPointer {
signature: String,
},
VoidPointer,
}Expand description
C language construct being transpiled
Variants§
RawPointer
Raw pointer: *T
Array
Array: T[N] or T[]
String
String: char* or const char*
Struct
Struct with potential pointer fields
Union
Union
FunctionPointer
Function pointer
VoidPointer
void*
Trait Implementations§
Source§impl Clone for CConstruct
impl Clone for CConstruct
Source§fn clone(&self) -> CConstruct
fn clone(&self) -> CConstruct
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 CConstruct
impl Debug for CConstruct
Source§impl<'de> Deserialize<'de> for CConstruct
impl<'de> Deserialize<'de> for CConstruct
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for CConstruct
impl Display for CConstruct
Auto Trait Implementations§
impl Freeze for CConstruct
impl RefUnwindSafe for CConstruct
impl Send for CConstruct
impl Sync for CConstruct
impl Unpin for CConstruct
impl UnsafeUnpin for CConstruct
impl UnwindSafe for CConstruct
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