pub trait Generator {
Show 22 methods fn type_record(
        &mut self,
        iface: &Interface,
        id: TypeId,
        name: &str,
        record: &Record,
        docs: &Docs,
        generate_structs: bool
    ); fn type_flags(
        &mut self,
        iface: &Interface,
        id: TypeId,
        name: &str,
        flags: &Flags,
        docs: &Docs,
        generate_structs: bool
    ); fn type_tuple(
        &mut self,
        iface: &Interface,
        id: TypeId,
        name: &str,
        flags: &Tuple,
        docs: &Docs,
        generate_structs: bool
    ); fn type_variant(
        &mut self,
        iface: &Interface,
        id: TypeId,
        name: &str,
        variant: &Variant,
        docs: &Docs,
        generate_structs: bool
    ); fn type_option(
        &mut self,
        iface: &Interface,
        id: TypeId,
        name: &str,
        payload: &Type,
        docs: &Docs,
        generate_structs: bool
    ); fn type_expected(
        &mut self,
        iface: &Interface,
        id: TypeId,
        name: &str,
        expected: &Expected,
        docs: &Docs,
        generate_structs: bool
    ); fn type_union(
        &mut self,
        iface: &Interface,
        id: TypeId,
        name: &str,
        union: &Union,
        docs: &Docs,
        generate_structs: bool
    ); fn type_enum(
        &mut self,
        iface: &Interface,
        id: TypeId,
        name: &str,
        enum_: &Enum,
        docs: &Docs,
        generate_structs: bool
    ); fn type_resource(&mut self, iface: &Interface, ty: ResourceId); fn type_alias(
        &mut self,
        iface: &Interface,
        id: TypeId,
        name: &str,
        ty: &Type,
        docs: &Docs,
        generate_structs: bool
    ); fn type_list(
        &mut self,
        iface: &Interface,
        id: TypeId,
        name: &str,
        ty: &Type,
        docs: &Docs,
        generate_structs: bool
    ); fn type_builtin(
        &mut self,
        iface: &Interface,
        id: TypeId,
        name: &str,
        ty: &Type,
        docs: &Docs,
        generate_structs: bool
    ); fn import(
        &mut self,
        iface: &Interface,
        func: &Function,
        generate_structs: bool
    ); fn export(
        &mut self,
        iface: &Interface,
        func: &Function,
        generate_structs: bool
    ); fn finish_one(&mut self, iface: &Interface, files: &mut Files); fn preprocess_all(&mut self, imports: &[Interface], exports: &[Interface]) { ... } fn preprocess_one(&mut self, iface: &Interface, dir: Direction) { ... } fn preprocess_functions(&mut self, iface: &Interface, dir: Direction) { ... } fn finish_functions(&mut self, iface: &Interface, dir: Direction) { ... } fn finish_all(&mut self, files: &mut Files) { ... } fn generate_one(
        &mut self,
        iface: &Interface,
        dir: Direction,
        files: &mut Files,
        generate_structs: bool
    ) { ... } fn generate_all(
        &mut self,
        imports: &[Interface],
        exports: &[Interface],
        files: &mut Files,
        generate_structs: bool
    ) { ... }
}

Required Methods

Provided Methods

Implementors