pub(crate) enum ModuleWrapper {
Jit(JITModule),
Aot(ObjectModule),
}
Variants§
Implementations§
Source§impl ModuleWrapper
impl ModuleWrapper
pub(crate) fn new( aot: bool, opt_level: OptimizationLevel, symbols: &Symbols, ) -> Result<Self>
pub(crate) fn new_jit( opt_level: OptimizationLevel, symbols: Symbols, ) -> Result<Self>
pub(crate) fn new_aot(opt_level: OptimizationLevel) -> Result<Self>
pub(crate) fn is_aot(&self) -> bool
pub(crate) fn get(&self) -> &dyn Module
pub(crate) fn get_mut(&mut self) -> &mut dyn Module
pub(crate) fn finalize_definitions(&mut self) -> Result<(), ModuleError>
pub(crate) fn get_finalized_function(&self, id: FuncId) -> Result<*const u8>
Auto Trait Implementations§
impl !Freeze for ModuleWrapper
impl !RefUnwindSafe for ModuleWrapper
impl Send for ModuleWrapper
impl !Sync for ModuleWrapper
impl Unpin for ModuleWrapper
impl !UnwindSafe for ModuleWrapper
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 800 bytes
Size for each variant:
Jit
: 800 bytesAot
: 664 bytes