pub struct UnitEnum<'gc> { /* private fields */ }Trait Implementations§
Source§impl<'gc> EnumAccess<'gc> for UnitEnum<'gc>
impl<'gc> EnumAccess<'gc> for UnitEnum<'gc>
Source§type Error = Error
type Error = Error
The error type that can be returned if some error occurs during
deserialization.
Source§type Variant = UnitVariant
type Variant = UnitVariant
The
Visitor that will be used to deserialize the content of the enum
variant.Source§fn variant_seed<V>(self, seed: V) -> Result<(V::Value, UnitVariant), Error>where
V: DeserializeSeed<'gc>,
fn variant_seed<V>(self, seed: V) -> Result<(V::Value, UnitVariant), Error>where
V: DeserializeSeed<'gc>,
variant is called to identify which variant to deserialize. Read moreAuto Trait Implementations§
impl<'gc> Freeze for UnitEnum<'gc>
impl<'gc> !RefUnwindSafe for UnitEnum<'gc>
impl<'gc> !Send for UnitEnum<'gc>
impl<'gc> !Sync for UnitEnum<'gc>
impl<'gc> Unpin for UnitEnum<'gc>
impl<'gc> !UnwindSafe for UnitEnum<'gc>
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