pub struct ScriptModule<'a, SE: ScriptExpression> {
pub name: String,
pub structs: Vec<ScriptStruct<'a>>,
pub enums: Vec<ScriptEnum<'a>>,
pub functions: Vec<ScriptFunction<'a, SE>>,
}
Fields§
§name: String
§structs: Vec<ScriptStruct<'a>>
§enums: Vec<ScriptEnum<'a>>
§functions: Vec<ScriptFunction<'a, SE>>
Implementations§
Source§impl<'a, SE: ScriptExpression> ScriptModule<'a, SE>
impl<'a, SE: ScriptExpression> ScriptModule<'a, SE>
pub fn fix_module_names(&mut self)
pub fn declare_types(&self, registry: &mut Registry)
pub fn define_types(&self, registry: &mut Registry)
pub fn install_types(&self, registry: &mut Registry)
Source§impl<SE: ScriptExpression> ScriptModule<'static, SE>
impl<SE: ScriptExpression> ScriptModule<'static, SE>
pub fn install_functions<SFG: ScriptFunctionGenerator<SE>>( &self, registry: &mut Registry, input: SFG::Input, )
Trait Implementations§
Source§impl<'a, SE: Debug + ScriptExpression> Debug for ScriptModule<'a, SE>
impl<'a, SE: Debug + ScriptExpression> Debug for ScriptModule<'a, SE>
Source§impl<'a, SE: Default + ScriptExpression> Default for ScriptModule<'a, SE>
impl<'a, SE: Default + ScriptExpression> Default for ScriptModule<'a, SE>
Source§fn default() -> ScriptModule<'a, SE>
fn default() -> ScriptModule<'a, SE>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a, SE> Freeze for ScriptModule<'a, SE>
impl<'a, SE> RefUnwindSafe for ScriptModule<'a, SE>where
SE: RefUnwindSafe,
impl<'a, SE> Send for ScriptModule<'a, SE>
impl<'a, SE> Sync for ScriptModule<'a, SE>
impl<'a, SE> Unpin for ScriptModule<'a, SE>
impl<'a, SE> UnwindSafe for ScriptModule<'a, SE>where
SE: RefUnwindSafe,
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