Enum aha_wit_parser::abi::Abi
source · [−]pub enum Abi {
Preview1,
Canonical,
}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.
Canonical
In-progress “canonical ABI” as proposed for interface types.
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 · sourcepub fn borrow_mut(&mut self) -> &mut T
pub 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.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more