pub enum CanonOpt<'a> {
StringUtf8,
StringUtf16,
StringLatin1Utf16,
Memory(CoreItemRef<'a, memory>),
Realloc(CoreItemRef<'a, func>),
PostReturn(CoreItemRef<'a, func>),
}
Expand description
Canonical ABI options.
Variants
StringUtf8
Encode strings as UTF-8.
StringUtf16
Encode strings as UTF-16.
StringLatin1Utf16
Encode strings as “compact UTF-16”.
Memory(CoreItemRef<'a, memory>)
Use the specified memory for canonical ABI memory access.
Realloc(CoreItemRef<'a, func>)
Use the specified reallocation function for memory allocations.
PostReturn(CoreItemRef<'a, func>)
Call the specified function after the lifted function has returned.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for CanonOpt<'a>
impl<'a> Send for CanonOpt<'a>
impl<'a> Sync for CanonOpt<'a>
impl<'a> Unpin for CanonOpt<'a>
impl<'a> UnwindSafe for CanonOpt<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more