pub enum Variant<U, T> {
Val(T),
Res(U),
}
Expand description
Used if enumerated values cover not the whole range
Variants§
Trait Implementations§
impl<U: Copy, T: Copy> Copy for Variant<U, T>
impl<U, T> StructuralPartialEq for Variant<U, T>
Auto Trait Implementations§
impl<U, T> Freeze for Variant<U, T>
impl<U, T> RefUnwindSafe for Variant<U, T>where
T: RefUnwindSafe,
U: RefUnwindSafe,
impl<U, T> Send for Variant<U, T>
impl<U, T> Sync for Variant<U, T>
impl<U, T> Unpin for Variant<U, T>
impl<U, T> UnwindSafe for Variant<U, T>where
T: UnwindSafe,
U: 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