[][src]Struct ice_rs::slice::module::Module

pub struct Module {
    pub name: String,
    pub full_name: String,
    pub sub_modules: Vec<Module>,
    // some fields omitted
}

Fields

name: Stringfull_name: Stringsub_modules: Vec<Module>

Implementations

impl Module[src]

pub fn new() -> Module[src]

pub fn has_dict(&self) -> bool[src]

pub fn snake_name(&self) -> String[src]

pub fn add_sub_module(
    &mut self,
    name: &str
) -> Result<&mut Module, Box<dyn Error>>
[src]

pub fn add_enum(&mut self, enumeration: Enum)[src]

pub fn add_struct(&mut self, structure: Struct)[src]

pub fn add_interface(&mut self, interface: Interface)[src]

pub fn add_exception(&mut self, exception: Exception)[src]

pub fn add_typedef(&mut self, id: &str, vartype: IceType)[src]

pub fn add_class(&mut self, class: Class)[src]

pub fn generate(&self, dest: &Path) -> Result<(), Box<dyn Error>>[src]

Trait Implementations

impl ParsedModule for Module[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.