Trait interoptopus_backend_cpython::PythonWriter[][src]

pub trait PythonWriter {
Show 19 methods fn config(&self) -> &Config;
fn library(&self) -> &Library;
fn converter(&self) -> &Converter; fn write_imports(&self, w: &mut IndentWriter<'_>) -> Result<(), Error> { ... }
fn write_api_load_fuction(
        &self,
        w: &mut IndentWriter<'_>
    ) -> Result<(), Error> { ... }
fn write_constants(&self, w: &mut IndentWriter<'_>) -> Result<(), Error> { ... }
fn write_types(&self, w: &mut IndentWriter<'_>) -> Result<(), Error> { ... }
fn write_struct(
        &self,
        w: &mut IndentWriter<'_>,
        c: &CompositeType
    ) -> Result<(), Error> { ... }
fn write_enum(
        &self,
        w: &mut IndentWriter<'_>,
        e: &EnumType
    ) -> Result<(), Error> { ... }
fn write_callback_helpers(
        &self,
        w: &mut IndentWriter<'_>
    ) -> Result<(), Error> { ... }
fn write_function_proxies(
        &self,
        w: &mut IndentWriter<'_>
    ) -> Result<(), Error> { ... }
fn write_slice(
        &self,
        w: &mut IndentWriter<'_>,
        c: &CompositeType,
        mutable: bool
    ) -> Result<(), Error> { ... }
fn write_patterns(&self, w: &mut IndentWriter<'_>) -> Result<(), Error> { ... }
fn write_pattern_class(
        &self,
        w: &mut IndentWriter<'_>,
        class: &Service
    ) -> Result<(), Error> { ... }
fn pattern_class_args_without_first_to_string(
        &self,
        function: &Function,
        type_hints: bool
    ) -> String { ... }
fn write_pattern_class_success_enum_aware_rval(
        &self,
        w: &mut IndentWriter<'_>,
        _class: &Service,
        function: &Function,
        ctx: &str,
        ret: bool
    ) -> Result<(), Error> { ... }
fn write_utils(&self, w: &mut IndentWriter<'_>) -> Result<(), Error> { ... }
fn write_utils_primitive(
        &self,
        _: &mut IndentWriter<'_>,
        _: PrimitiveType
    ) -> Result<(), Error> { ... }
fn write_all(&self, w: &mut IndentWriter<'_>) -> Result<(), Error> { ... }
}
Expand description

Writes the Python file format, impl this trait to customize output.

Required methods

Returns the user config.

Returns the library to produce bindings for.

Returns the library to produce bindings for.

Provided methods

Implementors