pub struct Module {
pub name: String,
pub instructions: Instructions,
pub functions: Vec<Function>,
}
Expand description
Module
A module is reusable part between applications. If you have some frequent used code, you can group it in a module so you can reused it between applications.
Can be compared with an include statement.
Fields§
§name: String
Name of the module; only used in comments.
instructions: Instructions
Module specific utility instructions.
For sharing code between functions.
functions: Vec<Function>
Functions of this module.
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