pub enum ModifyReturn<D> {
Replace(D),
DontReplace(D),
}
Variants§
Implementations§
Source§impl<D> ModifyReturn<D>
impl<D> ModifyReturn<D>
Trait Implementations§
Source§impl<D: Clone> Clone for ModifyReturn<D>
impl<D: Clone> Clone for ModifyReturn<D>
Source§fn clone(&self) -> ModifyReturn<D>
fn clone(&self) -> ModifyReturn<D>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<D> Freeze for ModifyReturn<D>where
D: Freeze,
impl<D> RefUnwindSafe for ModifyReturn<D>where
D: RefUnwindSafe,
impl<D> Send for ModifyReturn<D>where
D: Send,
impl<D> Sync for ModifyReturn<D>where
D: Sync,
impl<D> Unpin for ModifyReturn<D>where
D: Unpin,
impl<D> UnwindSafe for ModifyReturn<D>where
D: 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