pub struct C;
Available on crate feature
headers
only.Trait Implementations§
source§impl HeaderLanguage for C
impl HeaderLanguage for C
fn emit_docs( &self, ctx: &mut dyn Definer, docs: &'_ [&'_ str], indent: &Indentation ) -> Result<()>
fn supports_type_aliases( self: &C ) -> Option<&dyn HeaderLanguageSupportingTypeAliases>
fn emit_simple_enum( &self, ctx: &mut dyn Definer, docs: &'_ [&'_ str], self_ty: &dyn PhantomCType, backing_integer: Option<&dyn PhantomCType>, variants: &[EnumVariant<'_>] ) -> Result<()>
fn emit_struct( &self, ctx: &mut dyn Definer, docs: &'_ [&'_ str], self_ty: &dyn PhantomCType, fields: &[StructField<'_>] ) -> Result<()>
fn emit_opaque_type( &self, ctx: &mut dyn Definer, docs: &'_ [&'_ str], self_ty: &dyn PhantomCType ) -> Result<()>
fn emit_function( &self, ctx: &mut dyn Definer, docs: &'_ [&'_ str], fname: &str, args: &[FunctionArg<'_>], ret_ty: &dyn PhantomCType ) -> Result<()>
fn emit_constant( &self, ctx: &mut dyn Definer, docs: &'_ [&'_ str], name: &str, ty: &dyn PhantomCType, skip_type: bool, value: &dyn Debug ) -> Result<()>
fn language_name(&self) -> &'static str
source§impl HeaderLanguageSupportingTypeAliases for C
impl HeaderLanguageSupportingTypeAliases for C
fn emit_type_alias( &self, ctx: &mut dyn Definer, docs: &'_ [&'_ str], self_ty: &dyn PhantomCType, inner_ty: &dyn PhantomCType ) -> Result<()>
Auto Trait Implementations§
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> FitForCBox for T
impl<T> FitForCBox for T
§type CBoxWrapped = Box_<T>
type CBoxWrapped = Box_<T>
Available on crate feature
alloc
only.source§impl<T> ManuallyDropMut for T
impl<T> ManuallyDropMut for T
type Ret = ManuallyDrop<T>
fn manually_drop_mut<'__>(&'__ mut self) -> &'__ mut ManuallyDrop<T>
source§impl<T> UpcastAny for Twhere
T: 'static,
impl<T> UpcastAny for Twhere T: 'static,
source§fn upcast_any(&self) -> &(dyn Any + 'static)
fn upcast_any(&self) -> &(dyn Any + 'static)
Available on crate feature
headers
only.