pub struct Module {
pub name: String,
pub full_name: String,
pub sub_modules: Vec<Module>,
pub type_map: Rc<RefCell<BTreeMap<String, String>>>,
/* private fields */
}
Fields§
§name: String
§full_name: String
§sub_modules: Vec<Module>
§type_map: Rc<RefCell<BTreeMap<String, String>>>
Implementations§
Source§impl Module
impl Module
pub fn new(type_map: Rc<RefCell<BTreeMap<String, String>>>) -> Module
pub fn has_dict(&self) -> bool
pub fn snake_name(&self) -> String
pub fn add_enum(&mut self, enumeration: Enum)
pub fn add_struct(&mut self, structure: Struct)
pub fn add_interface(&mut self, interface: Interface)
pub fn add_exception(&mut self, exception: Exception)
pub fn add_typedef(&mut self, id: &str, vartype: IceType)
pub fn add_class(&mut self, class: Class)
pub fn generate( &self, dest: &Path, mod_path: &str, ) -> Result<(), Box<dyn Error>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Module
impl !RefUnwindSafe for Module
impl !Send for Module
impl !Sync for Module
impl Unpin for Module
impl !UnwindSafe for Module
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more