pub enum MapExecution<K: HashWork, V, Old: Work, New: Work> {
Changed {
map: OwnedMap<K, V, New>,
previous: Old,
},
Foreign {
map: OwnedMap<K, V, Old>,
requested: New,
},
}Expand description
Owning execution transfer, preserving both inputs on account mismatch. No table allocation, key traversal or account-owner clone is performed.
Variants§
Changed
Same allocation and account under the requested execution.
Fields
§
previous: OldPrevious execution, moved without cloning.
Foreign
Different accounts cannot exchange retained allocation charges.
Auto Trait Implementations§
impl<K, V, Old, New> !Freeze for MapExecution<K, V, Old, New>
impl<K, V, Old, New> RefUnwindSafe for MapExecution<K, V, Old, New>where
OwnedMap<K, V, New>: RefUnwindSafe,
Old: RefUnwindSafe,
OwnedMap<K, V, Old>: RefUnwindSafe,
New: RefUnwindSafe,
impl<K, V, Old, New> Send for MapExecution<K, V, Old, New>
impl<K, V, Old, New> Sync for MapExecution<K, V, Old, New>
impl<K, V, Old, New> Unpin for MapExecution<K, V, Old, New>
impl<K, V, Old, New> UnsafeUnpin for MapExecution<K, V, Old, New>where
OwnedMap<K, V, New>: UnsafeUnpin,
Old: UnsafeUnpin,
OwnedMap<K, V, Old>: UnsafeUnpin,
New: UnsafeUnpin,
impl<K, V, Old, New> UnwindSafe for MapExecution<K, V, Old, New>where
OwnedMap<K, V, New>: UnwindSafe,
Old: UnwindSafe,
OwnedMap<K, V, Old>: UnwindSafe,
New: UnwindSafe,
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