pub enum UnstagedMaybeAlloc<'a, K, T> where
K: Kind,
T: Alloc<'a, K>, {
Alloc(T),
Stub(T::Collected),
}
Variants
Alloc(T)
Stub(T::Collected)
Auto Trait Implementations
impl<'a, K, T> RefUnwindSafe for UnstagedMaybeAlloc<'a, K, T> where
T: RefUnwindSafe,
<T as Alloc<'a, K>>::Collected: RefUnwindSafe,
impl<'a, K, T> Send for UnstagedMaybeAlloc<'a, K, T> where
T: Send,
<T as Alloc<'a, K>>::Collected: Send,
impl<'a, K, T> Sync for UnstagedMaybeAlloc<'a, K, T> where
T: Sync,
<T as Alloc<'a, K>>::Collected: Sync,
impl<'a, K, T> Unpin for UnstagedMaybeAlloc<'a, K, T> where
T: Unpin,
<T as Alloc<'a, K>>::Collected: Unpin,
impl<'a, K, T> UnwindSafe for UnstagedMaybeAlloc<'a, K, T> where
T: UnwindSafe,
<T as Alloc<'a, K>>::Collected: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more