Struct rust_swig::Generator [−][src]
pub struct Generator { /* fields omitted */ }
Generator
is a main point of rust_swig
.
It expands rust macroses and generates not rust code.
It designed to use inside build.rs
.
Methods
impl Generator
[src]
impl Generator
pub fn new(config: LanguageConfig) -> Generator
[src]
pub fn new(config: LanguageConfig) -> Generator
pub fn with_pointer_target_width(self, pointer_target_width: usize) -> Generator
[src]
pub fn with_pointer_target_width(self, pointer_target_width: usize) -> Generator
pub fn register(self, registry: &mut Registry)
[src]
pub fn register(self, registry: &mut Registry)
pub fn merge_type_map(self, id_of_code: &str, code: &str) -> Generator
[src]
pub fn merge_type_map(self, id_of_code: &str, code: &str) -> Generator
Add new foreign langauge type <-> Rust mapping
Trait Implementations
impl TTMacroExpander for Generator
[src]
impl TTMacroExpander for Generator