Enum wasmtime_wit_bindgen::Ownership
source · pub enum Ownership {
Owning,
Borrowing {
duplicate_if_necessary: bool,
},
}
Variants§
Owning
Generated types will be composed entirely of owning fields, regardless of whether they are used as parameters to guest exports or not.
Borrowing
Fields
Generated types used as parameters to guest exports will be “deeply borrowing”, i.e. contain references rather than owned values when applicable.
Trait Implementations§
impl Copy for Ownership
Auto Trait Implementations§
impl RefUnwindSafe for Ownership
impl Send for Ownership
impl Sync for Ownership
impl Unpin for Ownership
impl UnwindSafe for Ownership
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