Struct interoptopus_backend_c::Generator [−][src]
pub struct Generator { /* fields omitted */ }
Expand description
Start here, main converter implementing Interop
.
Implementations
Trait Implementations
fn write_function_declaration(
&self,
w: &mut IndentWriter<'_>,
function: &Function,
max_line: usize
) -> Result<(), Error>
fn write_type_definition(
&self,
w: &mut IndentWriter<'_>,
the_type: &CType,
known_function_pointers: &mut Vec<String>
) -> Result<(), Error>
fn write_type_definition_fn_pointer(
&self,
w: &mut IndentWriter<'_>,
the_type: &FnPointerType,
known_function_pointers: &mut Vec<String>
) -> Result<(), Error>
fn write_type_definition_fn_pointer_body(
&self,
w: &mut IndentWriter<'_>,
the_type: &FnPointerType,
known_function_pointers: &mut Vec<String>
) -> Result<(), Error>
fn write_type_definition_enum(
&self,
w: &mut IndentWriter<'_>,
the_type: &EnumType
) -> Result<(), Error>
fn write_type_definition_enum_variant(
&self,
w: &mut IndentWriter<'_>,
variant: &Variant,
the_enum: &EnumType
) -> Result<(), Error>
fn write_type_definition_opaque(
&self,
w: &mut IndentWriter<'_>,
the_type: &OpaqueType
) -> Result<(), Error>
fn write_type_definition_opaque_body(
&self,
w: &mut IndentWriter<'_>,
the_type: &OpaqueType
) -> Result<(), Error>
fn write_type_definition_composite(
&self,
w: &mut IndentWriter<'_>,
the_type: &CompositeType
) -> Result<(), Error>
fn write_type_definition_composite_body(
&self,
w: &mut IndentWriter<'_>,
the_type: &CompositeType
) -> Result<(), Error>
fn write_type_definition_composite_body_field(
&self,
w: &mut IndentWriter<'_>,
field: &Field,
_the_type: &CompositeType
) -> Result<(), Error>
fn write_ifndef(
&self,
w: &mut IndentWriter<'_>,
f: impl FnOnce(&mut IndentWriter<'_>) -> Result<(), Error>
) -> Result<(), Error>
fn write_ifdefcpp(
&self,
w: &mut IndentWriter<'_>,
f: impl FnOnce(&mut IndentWriter<'_>) -> Result<(), Error>
) -> Result<(), Error>
Generates FFI binding code and writes them to the IndentWriter
.