pub enum CDerivedType {
Pointer {
is_const: bool,
is_volatile: bool,
is_restrict: bool,
},
Array {
size: Option<usize>,
},
Function {
params: Vec<CTypeSpecs>,
variadic: bool,
},
}Expand description
C 派生型
Variants§
Implementations§
Source§impl CDerivedType
impl CDerivedType
Sourcepub fn from_derived_decls(derived: &[DerivedDecl]) -> Vec<Self>
pub fn from_derived_decls(derived: &[DerivedDecl]) -> Vec<Self>
DerivedDecl のリストから CDerivedType のリストを作成
Trait Implementations§
Source§impl Clone for CDerivedType
impl Clone for CDerivedType
Source§fn clone(&self) -> CDerivedType
fn clone(&self) -> CDerivedType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CDerivedType
impl Debug for CDerivedType
Source§impl PartialEq for CDerivedType
impl PartialEq for CDerivedType
Source§fn eq(&self, other: &CDerivedType) -> bool
fn eq(&self, other: &CDerivedType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CDerivedType
impl StructuralPartialEq for CDerivedType
Auto Trait Implementations§
impl Freeze for CDerivedType
impl RefUnwindSafe for CDerivedType
impl Send for CDerivedType
impl Sync for CDerivedType
impl Unpin for CDerivedType
impl UnsafeUnpin for CDerivedType
impl UnwindSafe for CDerivedType
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