Struct wasmer_compiler_cli::store::SubsetTunables
source · pub struct SubsetTunables {
pub static_memory_bound: Pages,
pub static_memory_offset_guard_size: u64,
pub dynamic_memory_offset_guard_size: u64,
}Expand description
Minimul Subset of Tunable parameters for WebAssembly compilation.
Fields§
§static_memory_bound: PagesFor static heaps, the size in wasm pages of the heap protected by bounds checking.
static_memory_offset_guard_size: u64The size in bytes of the offset guard for static heaps.
dynamic_memory_offset_guard_size: u64The size in bytes of the offset guard for dynamic heaps.
Implementations§
source§impl SubsetTunables
impl SubsetTunables
sourcepub fn for_target(target: &Target) -> Self
pub fn for_target(target: &Target) -> Self
Get the BaseTunables for a specific Target
sourcepub fn memory_style(&self, memory: &MemoryType) -> MemoryStyle
pub fn memory_style(&self, memory: &MemoryType) -> MemoryStyle
Get a MemoryStyle for the provided MemoryType
sourcepub fn table_style(&self, _table: &TableType) -> TableStyle
pub fn table_style(&self, _table: &TableType) -> TableStyle
Get a TableStyle for the provided TableType.
Trait Implementations§
source§impl Clone for SubsetTunables
impl Clone for SubsetTunables
source§fn clone(&self) -> SubsetTunables
fn clone(&self) -> SubsetTunables
Returns a copy 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 RefUnwindSafe for SubsetTunables
impl Send for SubsetTunables
impl Sync for SubsetTunables
impl Unpin for SubsetTunables
impl UnwindSafe for SubsetTunables
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
§impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,
§fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut D ) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.
source§impl<T> Upcastable for Twhere
T: Any + Send + Sync + 'static,
impl<T> Upcastable for Twhere T: Any + Send + Sync + 'static,
source§fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
source§fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref