pub enum MixedValue<T: EnumSetType> {
Valid(T),
Invalid(u32),
}Expand description
Used to return potentially invalid variants of a MixedEnumSet.
Variants§
Valid(T)
A bit that is valid for the enum type.
Invalid(u32)
A bit that does not correspond to any variant of the enum.
Trait Implementations§
Source§impl<T: Clone + EnumSetType> Clone for MixedValue<T>
impl<T: Clone + EnumSetType> Clone for MixedValue<T>
Source§fn clone(&self) -> MixedValue<T>
fn clone(&self) -> MixedValue<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<T: Copy + EnumSetType> Copy for MixedValue<T>
Source§impl<T> Debug for MixedValue<T>where
T: Debug + EnumSetType,
impl<T> Debug for MixedValue<T>where
T: Debug + EnumSetType,
Source§impl<T> Display for MixedValue<T>where
T: Display + EnumSetType,
impl<T> Display for MixedValue<T>where
T: Display + EnumSetType,
impl<T: Eq + EnumSetType> Eq for MixedValue<T>
Source§impl<T: Hash + EnumSetType> Hash for MixedValue<T>
impl<T: Hash + EnumSetType> Hash for MixedValue<T>
Source§impl<T: Ord + EnumSetType> Ord for MixedValue<T>
impl<T: Ord + EnumSetType> Ord for MixedValue<T>
Source§fn cmp(&self, other: &MixedValue<T>) -> Ordering
fn cmp(&self, other: &MixedValue<T>) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: PartialEq + EnumSetType> PartialEq for MixedValue<T>
impl<T: PartialEq + EnumSetType> PartialEq for MixedValue<T>
Source§fn eq(&self, other: &MixedValue<T>) -> bool
fn eq(&self, other: &MixedValue<T>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<T: PartialOrd + EnumSetType> PartialOrd for MixedValue<T>
impl<T: PartialOrd + EnumSetType> PartialOrd for MixedValue<T>
impl<T: PartialEq + EnumSetType> StructuralPartialEq for MixedValue<T>
Auto Trait Implementations§
impl<T> Freeze for MixedValue<T>where
T: Freeze,
impl<T> RefUnwindSafe for MixedValue<T>where
T: RefUnwindSafe,
impl<T> Send for MixedValue<T>where
T: Send,
impl<T> Sync for MixedValue<T>where
T: Sync,
impl<T> Unpin for MixedValue<T>where
T: Unpin,
impl<T> UnsafeUnpin for MixedValue<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for MixedValue<T>where
T: 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