pub enum Abi {
Preview1,
}
Expand description
Possible ABIs for interface functions to have.
Note that this is a stopgap until we have more of interface types. Interface types functions do not have ABIs, they have APIs. For the meantime, however, we mandate ABIs to ensure we can all talk to each other.
Variants
Preview1
Only stable ABI currently, and is the historical WASI ABI since it was first created.
Note that this ABI is limited notably in its return values where it can
only return 0 results or one Result<T, enum>
lookalike.
Implementations
Trait Implementations
impl Copy for Abi
impl Eq for Abi
impl StructuralEq for Abi
impl StructuralPartialEq for Abi
Auto Trait Implementations
impl RefUnwindSafe for Abi
impl Send for Abi
impl Sync for Abi
impl Unpin for Abi
impl UnwindSafe for Abi
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more