pub struct VariantIdx(pub u32);Expand description
A constructor index, used to encode enums (sum types, optional, etc.) by their index.
Tuple Fields§
§0: u32Trait Implementations§
Source§impl Clone for VariantIdx
impl Clone for VariantIdx
Source§fn clone(&self) -> VariantIdx
fn clone(&self) -> VariantIdx
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VariantIdx
impl Debug for VariantIdx
Source§impl Hash for VariantIdx
impl Hash for VariantIdx
Source§impl Ord for VariantIdx
impl Ord for VariantIdx
Source§fn cmp(&self, other: &VariantIdx) -> Ordering
fn cmp(&self, other: &VariantIdx) -> Ordering
1.21.0 · 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 PartialEq for VariantIdx
impl PartialEq for VariantIdx
Source§impl PartialOrd for VariantIdx
impl PartialOrd for VariantIdx
impl Copy for VariantIdx
impl Eq for VariantIdx
impl StructuralPartialEq for VariantIdx
Auto Trait Implementations§
impl Freeze for VariantIdx
impl RefUnwindSafe for VariantIdx
impl Send for VariantIdx
impl Sync for VariantIdx
impl Unpin for VariantIdx
impl UnwindSafe for VariantIdx
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