pub enum UnitEnumEither<E: UnitEnum> {
Enum(E),
Unit(E::Unit),
}
Expand description
A full UnitEnum, or just the unit type of that UnitEnum
Variants§
Trait Implementations§
Auto Trait Implementations§
impl<E> RefUnwindSafe for UnitEnumEither<E>
impl<E> Send for UnitEnumEither<E>
impl<E> Sync for UnitEnumEither<E>
impl<E> Unpin for UnitEnumEither<E>
impl<E> UnwindSafe for UnitEnumEither<E>
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