pub struct TupleIndex(/* private fields */);
Expand description
A field index in a tuple or an enum variant.
Implementations§
Trait Implementations§
Source§impl Clone for TupleIndex
impl Clone for TupleIndex
Source§fn clone(&self) -> TupleIndex
fn clone(&self) -> TupleIndex
Returns a copy 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 TupleIndex
impl Debug for TupleIndex
Source§impl Default for TupleIndex
impl Default for TupleIndex
Source§fn default() -> TupleIndex
fn default() -> TupleIndex
Returns the “default value” for a type. Read more
Source§impl Hash for TupleIndex
impl Hash for TupleIndex
Source§impl Ord for TupleIndex
impl Ord for TupleIndex
Source§fn cmp(&self, other: &TupleIndex) -> Ordering
fn cmp(&self, other: &TupleIndex) -> 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 TupleIndex
impl PartialEq for TupleIndex
Source§impl PartialOrd for TupleIndex
impl PartialOrd for TupleIndex
Source§impl TryFrom<usize> for TupleIndex
impl TryFrom<usize> for TupleIndex
impl Copy for TupleIndex
impl Eq for TupleIndex
impl StructuralPartialEq for TupleIndex
Auto Trait Implementations§
impl Freeze for TupleIndex
impl RefUnwindSafe for TupleIndex
impl Send for TupleIndex
impl Sync for TupleIndex
impl Unpin for TupleIndex
impl UnwindSafe for TupleIndex
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