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
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 Freeze for Ownership
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
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
)