Enum fuchsia_wayland_core::Enum
source · 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§
source§impl<E: PartialEq + Copy + PartialEq> PartialEq for Enum<E>
impl<E: PartialEq + Copy + PartialEq> PartialEq for Enum<E>
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>
impl<E> RefUnwindSafe for Enum<E>where
E: Clone + RefUnwindSafe,
impl<E> Send for Enum<E>
impl<E> Sync for Enum<E>
impl<E> Unpin for Enum<E>
impl<E> UnwindSafe for Enum<E>where
E: Clone + 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