pub struct UnityEnum<E>{ /* private fields */ }Expand description
Used for storing enums
Implementations§
Trait Implementations§
Source§impl<'de, E> Deserialize<'de> for UnityEnum<E>
impl<'de, E> Deserialize<'de> for UnityEnum<E>
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<E> Freeze for UnityEnum<E>where
E: Freeze,
impl<E> RefUnwindSafe for UnityEnum<E>where
E: RefUnwindSafe,
impl<E> Send for UnityEnum<E>where
E: Send,
impl<E> Sync for UnityEnum<E>where
E: Sync,
impl<E> Unpin for UnityEnum<E>where
E: Unpin,
impl<E> UnsafeUnpin for UnityEnum<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for UnityEnum<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