Struct EnumRepr
#[repr(transparent)]pub struct EnumRepr<T, E> {
raw: T,
_marker: PhantomData<E>,
}Fields§
§raw: T§_marker: PhantomData<E>Implementations§
Trait Implementations§
impl<T: Copy, E> Copy for EnumRepr<T, E>
impl<T, E> Eq for EnumRepr<T, E>where
T: Eq,
Auto Trait Implementations§
impl<T, E> Freeze for EnumRepr<T, E>where
T: Freeze,
impl<T, E> RefUnwindSafe for EnumRepr<T, E>where
T: RefUnwindSafe,
E: RefUnwindSafe,
impl<T, E> Send for EnumRepr<T, E>
impl<T, E> Sync for EnumRepr<T, E>
impl<T, E> Unpin for EnumRepr<T, E>
impl<T, E> UnwindSafe for EnumRepr<T, E>where
T: UnwindSafe,
E: 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