pub struct ScriptPackage<'a, SE>where
SE: ScriptExpression,{
pub modules: Vec<ScriptModule<'a, SE>>,
}Expand description
A whole compilation unit: the modules a frontend produced.
Fields§
§modules: Vec<ScriptModule<'a, SE>>Modules this unit is made of.
Implementations§
Source§impl<SE> ScriptPackage<'static, SE>where
SE: ScriptExpression,
impl<SE> ScriptPackage<'static, SE>where
SE: ScriptExpression,
Sourcepub fn install<SFG>(
&self,
registry: &mut Registry,
input: <SFG as ScriptFunctionGenerator<SE>>::Input,
)
pub fn install<SFG>( &self, registry: &mut Registry, input: <SFG as ScriptFunctionGenerator<SE>>::Input, )
Installs everything into a registry.
Every module’s types go in first, across the whole package, so functions and fields can refer to types from any module.
Trait Implementations§
Source§impl<'a, SE> Debug for ScriptPackage<'a, SE>where
SE: Debug + ScriptExpression,
impl<'a, SE> Debug for ScriptPackage<'a, SE>where
SE: Debug + ScriptExpression,
Source§impl<'a, SE> Default for ScriptPackage<'a, SE>where
SE: Default + ScriptExpression,
impl<'a, SE> Default for ScriptPackage<'a, SE>where
SE: Default + ScriptExpression,
Source§fn default() -> ScriptPackage<'a, SE>
fn default() -> ScriptPackage<'a, SE>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a, SE> Freeze for ScriptPackage<'a, SE>
impl<'a, SE> RefUnwindSafe for ScriptPackage<'a, SE>
impl<'a, SE> Send for ScriptPackage<'a, SE>
impl<'a, SE> Sync for ScriptPackage<'a, SE>
impl<'a, SE> Unpin for ScriptPackage<'a, SE>
impl<'a, SE> UnsafeUnpin for ScriptPackage<'a, SE>
impl<'a, SE> UnwindSafe for ScriptPackage<'a, SE>
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
Source§impl<T> Initialize for Twhere
T: Default,
impl<T> Initialize for Twhere
T: Default,
Source§fn initialize() -> T
fn initialize() -> T
Returns the initial value of this type.