pub struct CanonicalOptions {
pub instance: RuntimeComponentInstanceIndex,
pub string_encoding: StringEncoding,
pub memory: Option<RuntimeMemoryIndex>,
pub realloc: Option<RuntimeReallocIndex>,
pub post_return: Option<RuntimePostReturnIndex>,
}
Expand description
Canonical ABI options associated with a lifted or lowered function.
Fields§
§instance: RuntimeComponentInstanceIndex
The component instance that this bundle was associated with.
string_encoding: StringEncoding
The encoding used for strings.
memory: Option<RuntimeMemoryIndex>
The memory used by these options, if specified.
realloc: Option<RuntimeReallocIndex>
The realloc function used by these options, if specified.
post_return: Option<RuntimePostReturnIndex>
The post-return function used by these options, if specified.
Trait Implementations§
source§impl Clone for CanonicalOptions
impl Clone for CanonicalOptions
source§fn clone(&self) -> CanonicalOptions
fn clone(&self) -> CanonicalOptions
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 moresource§impl Debug for CanonicalOptions
impl Debug for CanonicalOptions
source§impl<'de> Deserialize<'de> for CanonicalOptions
impl<'de> Deserialize<'de> for CanonicalOptions
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CanonicalOptions
impl RefUnwindSafe for CanonicalOptions
impl Send for CanonicalOptions
impl Sync for CanonicalOptions
impl Unpin for CanonicalOptions
impl UnwindSafe for CanonicalOptions
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)