pub struct VMConfig { /* private fields */ }
Expand description
Allows for the customization of a Wren VM
Implementations§
source§impl VMConfig
impl VMConfig
pub fn new() -> VMConfig
pub fn printer<P: 'static + Printer>(self, p: P) -> Self
pub fn script_loader<L: 'static + ModuleScriptLoader>(self, l: L) -> Self
pub fn library(self, l: &ModuleLibrary) -> Self
pub fn no_library(self) -> Self
pub fn initial_heap_size(self, ihs: usize) -> Self
pub fn min_heap_size(self, mhs: usize) -> Self
pub fn heap_growth_percent(self, hgp: usize) -> Self
pub fn enable_relative_import(self, eri: bool) -> Self
pub fn build(self) -> VMWrapper
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for VMConfig
impl !Send for VMConfig
impl !Sync for VMConfig
impl Unpin for VMConfig
impl !UnwindSafe for VMConfig
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