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