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
sourcefn type_record(
fn type_record(
&mut self,
iface: &Interface,
id: TypeId,
name: &str,
record: &Record,
docs: &Docs,
generate_structs: bool
)
sourcefn type_flags(
fn type_flags(
&mut self,
iface: &Interface,
id: TypeId,
name: &str,
flags: &Flags,
docs: &Docs,
generate_structs: bool
)
sourcefn type_tuple(
fn type_tuple(
&mut self,
iface: &Interface,
id: TypeId,
name: &str,
flags: &Tuple,
docs: &Docs,
generate_structs: bool
)
sourcefn type_variant(
fn type_variant(
&mut self,
iface: &Interface,
id: TypeId,
name: &str,
variant: &Variant,
docs: &Docs,
generate_structs: bool
)
sourcefn type_option(
fn type_option(
&mut self,
iface: &Interface,
id: TypeId,
name: &str,
payload: &Type,
docs: &Docs,
generate_structs: bool
)
sourcefn type_expected(
fn type_expected(
&mut self,
iface: &Interface,
id: TypeId,
name: &str,
expected: &Expected,
docs: &Docs,
generate_structs: bool
)
sourcefn type_union(
fn type_union(
&mut self,
iface: &Interface,
id: TypeId,
name: &str,
union: &Union,
docs: &Docs,
generate_structs: bool
)
sourcefn type_enum(
fn type_enum(
&mut self,
iface: &Interface,
id: TypeId,
name: &str,
enum_: &Enum,
docs: &Docs,
generate_structs: bool
)
source
fn type_resource(&mut self, iface: &Interface, ty: ResourceId)
sourcefn type_alias(
fn type_alias(
&mut self,
iface: &Interface,
id: TypeId,
name: &str,
ty: &Type,
docs: &Docs,
generate_structs: bool
)
sourcefn type_list(
fn type_list(
&mut self,
iface: &Interface,
id: TypeId,
name: &str,
ty: &Type,
docs: &Docs,
generate_structs: bool
)
sourcefn type_builtin(
fn type_builtin(
&mut self,
iface: &Interface,
id: TypeId,
name: &str,
ty: &Type,
docs: &Docs,
generate_structs: bool
)
source
fn finish_one(&mut self, iface: &Interface, files: &mut Files)
Provided Methods
source
fn preprocess_all(&mut self, imports: &[Interface], exports: &[Interface])
source
fn preprocess_one(&mut self, iface: &Interface, dir: Direction)
source
fn preprocess_functions(&mut self, iface: &Interface, dir: Direction)
source
fn finish_functions(&mut self, iface: &Interface, dir: Direction)
source