enum MaybeOwnedDCtx<'a> {
Owned(DCtx<'a>),
Borrowed(&'a mut DCtx<'static>),
}
Variants§
Auto Trait Implementations§
impl<'a> Freeze for MaybeOwnedDCtx<'a>
impl<'a> RefUnwindSafe for MaybeOwnedDCtx<'a>
impl<'a> Send for MaybeOwnedDCtx<'a>
impl<'a> Sync for MaybeOwnedDCtx<'a>
impl<'a> Unpin for MaybeOwnedDCtx<'a>
impl<'a> !UnwindSafe for MaybeOwnedDCtx<'a>
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