pub enum Enum<E: Copy + PartialEq> {
Recognized(E),
Unrecognized(u32),
}
Expand description
Thin wrapper around the typed enum values that allow us to transport unknown enum values.
Variants§
Implementations§
Trait Implementations§
impl<E: Copy + Copy + PartialEq> Copy for Enum<E>
impl<E: Copy + PartialEq> StructuralPartialEq for Enum<E>
Auto Trait Implementations§
impl<E> Freeze for Enum<E>where
E: Freeze,
impl<E> RefUnwindSafe for Enum<E>where
E: RefUnwindSafe,
impl<E> Send for Enum<E>where
E: Send,
impl<E> Sync for Enum<E>where
E: Sync,
impl<E> Unpin for Enum<E>where
E: Unpin,
impl<E> UnwindSafe for Enum<E>where
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)