Trait interoptopus_backend_csharp::CSharpWriter [−][src]
pub trait CSharpWriter {}Show 46 methods
fn config(&self) -> &Config; fn library(&self) -> &Library; fn converter(&self) -> &Converter; fn write_file_header_comments(
&self,
w: &mut IndentWriter<'_>
) -> Result<(), Error> { ... } fn debug(&self, w: &mut IndentWriter<'_>, marker: &str) -> Result<(), Error> { ... } fn write_imports(&self, w: &mut IndentWriter<'_>) -> Result<(), Error> { ... } fn write_native_lib_string(
&self,
w: &mut IndentWriter<'_>
) -> Result<(), Error> { ... } fn write_abi_guard(&self, w: &mut IndentWriter<'_>) -> Result<(), Error> { ... } fn write_constants(&self, w: &mut IndentWriter<'_>) -> Result<(), Error> { ... } fn write_constant(
&self,
w: &mut IndentWriter<'_>,
constant: &Constant
) -> Result<(), Error> { ... } fn write_functions(&self, w: &mut IndentWriter<'_>) -> Result<(), Error> { ... } fn write_function(
&self,
w: &mut IndentWriter<'_>,
function: &Function
) -> Result<(), Error> { ... } fn write_documentation(
&self,
w: &mut IndentWriter<'_>,
documentation: &Documentation
) -> Result<(), Error> { ... } fn write_function_annotation(
&self,
w: &mut IndentWriter<'_>,
function: &Function
) -> Result<(), Error> { ... } fn write_function_declaration(
&self,
w: &mut IndentWriter<'_>,
function: &Function
) -> Result<(), Error> { ... } fn write_function_overloaded(
&self,
w: &mut IndentWriter<'_>,
function: &Function
) -> Result<(), Error> { ... } fn write_type_definitions(
&self,
w: &mut IndentWriter<'_>
) -> Result<(), Error> { ... } fn write_type_definition(
&self,
w: &mut IndentWriter<'_>,
the_type: &CType
) -> Result<(), Error> { ... } fn write_type_definition_ffibool(
&self,
w: &mut IndentWriter<'_>
) -> Result<(), Error> { ... } fn write_type_definition_fn_pointer(
&self,
w: &mut IndentWriter<'_>,
the_type: &FnPointerType
) -> Result<(), Error> { ... } fn write_type_definition_named_callback(
&self,
w: &mut IndentWriter<'_>,
the_type: &NamedCallback
) -> Result<(), Error> { ... } fn write_type_definition_named_callback_body(
&self,
w: &mut IndentWriter<'_>,
the_type: &NamedCallback
) -> Result<(), Error> { ... } fn write_type_definition_fn_pointer_annotation(
&self,
w: &mut IndentWriter<'_>,
_the_type: &FnPointerType
) -> Result<(), Error> { ... } fn write_type_definition_fn_pointer_body(
&self,
w: &mut IndentWriter<'_>,
the_type: &FnPointerType
) -> 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_type: &EnumType
) -> Result<(), Error> { ... } fn write_type_definition_composite(
&self,
w: &mut IndentWriter<'_>,
the_type: &CompositeType
) -> Result<(), Error> { ... } fn write_type_definition_composite_annotation(
&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 namespace_for_id(&self, id: &str) -> String { ... } fn write_namespace_context(
&self,
w: &mut IndentWriter<'_>,
f: impl FnOnce(&mut IndentWriter<'_>) -> Result<(), Error>
) -> Result<(), Error> { ... } fn write_class_context(
&self,
w: &mut IndentWriter<'_>,
f: impl FnOnce(&mut IndentWriter<'_>) -> Result<(), Error>
) -> Result<(), Error> { ... } fn should_emit_delegate(&self) -> bool { ... } fn has_emittable_functions(&self, functions: &[Function]) -> bool { ... } fn should_emit_by_meta(&self, meta: &Meta) -> bool { ... } fn should_emit_by_type(&self, t: &CType) -> bool { ... } fn write_patterns(&self, w: &mut IndentWriter<'_>) -> Result<(), Error> { ... } fn write_pattern_option(
&self,
w: &mut IndentWriter<'_>,
slice: &CompositeType
) -> Result<(), Error> { ... } fn write_pattern_slice(
&self,
w: &mut IndentWriter<'_>,
slice: &CompositeType
) -> Result<(), Error> { ... } fn write_pattern_slice_mut(
&self,
w: &mut IndentWriter<'_>,
slice: &CompositeType
) -> Result<(), Error> { ... } fn write_pattern_service(
&self,
w: &mut IndentWriter<'_>,
class: &Service
) -> Result<(), Error> { ... } fn write_pattern_service_method_overload(
&self,
w: &mut IndentWriter<'_>,
_class: &Service,
function: &Function,
rval: &str,
fn_name: &str
) -> Result<(), Error> { ... } fn write_pattern_service_success_enum_aware_rval(
&self,
w: &mut IndentWriter<'_>,
_class: &Service,
function: &Function,
deref_context: bool
) -> Result<(), Error> { ... } fn pattern_class_args_without_first_to_string(
&self,
function: &Function,
with_types: bool
) -> String { ... } fn write_all(&self, w: &mut IndentWriter<'_>) -> Result<(), Error> { ... }
Expand description
Writes the C# file format, impl
this trait to customize output.