pub enum Capture<'a, W: Borrow<B>, B: ?Sized> {
Owned(W),
Borrowed(&'a B),
}
Variants§
Trait Implementations§
Auto Trait Implementations§
impl<'a, W, B: ?Sized> RefUnwindSafe for Capture<'a, W, B>where B: RefUnwindSafe, W: RefUnwindSafe,
impl<'a, W, B: ?Sized> Send for Capture<'a, W, B>where B: Sync, W: Send,
impl<'a, W, B: ?Sized> Sync for Capture<'a, W, B>where B: Sync, W: Sync,
impl<'a, W, B: ?Sized> Unpin for Capture<'a, W, B>where W: Unpin,
impl<'a, W, B: ?Sized> UnwindSafe for Capture<'a, W, B>where B: RefUnwindSafe, W: 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