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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)