Struct soroban_wasmi::Config
source · pub struct Config { /* private fields */ }
Expand description
Configuration for an Engine
.
Implementations§
source§impl Config
impl Config
sourcepub fn set_stack_limits(&mut self, stack_limits: StackLimits) -> &mut Self
pub fn set_stack_limits(&mut self, stack_limits: StackLimits) -> &mut Self
Sets the StackLimits
for the Config
.
sourcepub fn wasm_mutable_global(&mut self, enable: bool) -> &mut Self
pub fn wasm_mutable_global(&mut self, enable: bool) -> &mut Self
sourcepub fn wasm_sign_extension(&mut self, enable: bool) -> &mut Self
pub fn wasm_sign_extension(&mut self, enable: bool) -> &mut Self
sourcepub fn wasm_saturating_float_to_int(&mut self, enable: bool) -> &mut Self
pub fn wasm_saturating_float_to_int(&mut self, enable: bool) -> &mut Self
Enable or disable the saturating-float-to-int
Wasm proposal for the Config
.
Note
Enabled by default.
sourcepub fn wasm_multi_value(&mut self, enable: bool) -> &mut Self
pub fn wasm_multi_value(&mut self, enable: bool) -> &mut Self
sourcepub fn wasm_features(&self) -> WasmFeatures
pub fn wasm_features(&self) -> WasmFeatures
Returns the WasmFeatures
represented by the Config
.
Trait Implementations§
impl Copy for Config
Auto Trait Implementations§
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more