pub enum VecExecution<T, Old: Work, New: Work> {
Changed {
values: OwnedVec<T, New>,
previous: Old,
},
Foreign {
values: OwnedVec<T, Old>,
requested: New,
},
}Expand description
Ownership-preserving vector execution transfer, including both inputs on mismatch. Layout, elements, capacity and retained charges are unchanged.
Variants§
Changed
Same allocation, now mutated under the requested current execution.
Fields
§
previous: OldPrevious work, without replaying charges.
Foreign
Different accounts cannot exchange allocation charges.
Auto Trait Implementations§
impl<T, Old, New> !Freeze for VecExecution<T, Old, New>
impl<T, Old, New> RefUnwindSafe for VecExecution<T, Old, New>where
OwnedVec<T, New>: RefUnwindSafe,
Old: RefUnwindSafe,
OwnedVec<T, Old>: RefUnwindSafe,
New: RefUnwindSafe,
impl<T, Old, New> Send for VecExecution<T, Old, New>
impl<T, Old, New> Sync for VecExecution<T, Old, New>
impl<T, Old, New> Unpin for VecExecution<T, Old, New>
impl<T, Old, New> UnsafeUnpin for VecExecution<T, Old, New>where
OwnedVec<T, New>: UnsafeUnpin,
Old: UnsafeUnpin,
OwnedVec<T, Old>: UnsafeUnpin,
New: UnsafeUnpin,
impl<T, Old, New> UnwindSafe for VecExecution<T, Old, New>
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