pub enum GetAction {
Take,
Clone,
}
Expand description
Take an item or just clone it?
Variants§
Take
Remove the item, faster but you can’t get it back.
Clone
Clone the item, slower but you can get it again.
Auto Trait Implementations§
impl Freeze for GetAction
impl RefUnwindSafe for GetAction
impl Send for GetAction
impl Sync for GetAction
impl Unpin for GetAction
impl UnwindSafe for GetAction
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