pub struct CompiledModule { /* private fields */ }Expand description
A compiled script ready for Rustia::install.
Create it with Rustia::compile_module. It owns its source metadata and
compiled code independently of any interpreter, and remains reusable after
reset. A clone shares constant and string storage; function and debug metadata
are currently copied.
Implementations§
Source§impl CompiledModule
impl CompiledModule
Sourcepub fn source_name(&self) -> &str
pub fn source_name(&self) -> &str
Returns the source label supplied when this module was compiled.
Trait Implementations§
Source§impl Clone for CompiledModule
impl Clone for CompiledModule
Source§fn clone(&self) -> CompiledModule
fn clone(&self) -> CompiledModule
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CompiledModule
impl RefUnwindSafe for CompiledModule
impl Send for CompiledModule
impl Sync for CompiledModule
impl Unpin for CompiledModule
impl UnsafeUnpin for CompiledModule
impl UnwindSafe for CompiledModule
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