#[repr(C)]pub struct Tuple2<T0, T1>(pub T0, pub T1);Expand description
An ABI stable tuple of 2 elements.
Tuple Fields§
§0: T0§1: T1Implementations§
Trait Implementations§
Source§impl<T0, T1> IStable for Tuple2<T0, T1>
impl<T0, T1> IStable for Tuple2<T0, T1>
Source§const REPORT: &'static TypeReport
const REPORT: &'static TypeReport
A compile-time generated report of the fields of the type, allowing for compatibility inspection.
Source§const ID: u64
const ID: u64
A stable (and ideally unique) identifier for the type. Often generated using
crate::report::gen_id, but can be manually set.Source§type ForbiddenValues = <Struct<FieldPair<T0, T1>> as IStable>::ForbiddenValues
type ForbiddenValues = <Struct<FieldPair<T0, T1>> as IStable>::ForbiddenValues
The values that the annotated type cannot occupy.
Source§type UnusedBits = <Struct<FieldPair<T0, T1>> as IStable>::UnusedBits
type UnusedBits = <Struct<FieldPair<T0, T1>> as IStable>::UnusedBits
The padding bits in the annotated types
Source§type Size = <Struct<FieldPair<T0, T1>> as IStable>::Size
type Size = <Struct<FieldPair<T0, T1>> as IStable>::Size
The size of the annotated type in bytes.
Source§type Align = <Struct<FieldPair<T0, T1>> as IStable>::Align
type Align = <Struct<FieldPair<T0, T1>> as IStable>::Align
The alignment of the annotated type in bytes.
Source§type HasExactlyOneNiche = <Struct<FieldPair<T0, T1>> as IStable>::HasExactlyOneNiche
type HasExactlyOneNiche = <Struct<FieldPair<T0, T1>> as IStable>::HasExactlyOneNiche
Allows the detection of whether or not
core::option::Options are stable: Read moreSource§type ContainsIndirections = <Struct<FieldPair<T0, T1>> as IStable>::ContainsIndirections
type ContainsIndirections = <Struct<FieldPair<T0, T1>> as IStable>::ContainsIndirections
Whether or not the type contains indirections (pointers, indices in independent data-structures…)
Source§impl<T0: Ord, T1: Ord> Ord for Tuple2<T0, T1>
impl<T0: Ord, T1: Ord> Ord for Tuple2<T0, T1>
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<T0: PartialOrd, T1: PartialOrd> PartialOrd for Tuple2<T0, T1>
impl<T0: PartialOrd, T1: PartialOrd> PartialOrd for Tuple2<T0, T1>
impl<T0: Copy, T1: Copy> Copy for Tuple2<T0, T1>
impl<T0: Eq, T1: Eq> Eq for Tuple2<T0, T1>
impl<T0, T1> StructuralPartialEq for Tuple2<T0, T1>
Auto Trait Implementations§
impl<T0, T1> Freeze for Tuple2<T0, T1>
impl<T0, T1> RefUnwindSafe for Tuple2<T0, T1>where
T0: RefUnwindSafe,
T1: RefUnwindSafe,
impl<T0, T1> Send for Tuple2<T0, T1>
impl<T0, T1> Sync for Tuple2<T0, T1>
impl<T0, T1> Unpin for Tuple2<T0, T1>
impl<T0, T1> UnwindSafe for Tuple2<T0, T1>where
T0: UnwindSafe,
T1: UnwindSafe,
Blanket Implementations§
Source§impl<Source> AccessAs for Source
impl<Source> AccessAs for Source
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§impl<T> IPod for T
impl<T> IPod for T
Source§fn identifier() -> u64
fn identifier() -> u64
Produces an identifier for the type, allowing to check type at runtime (barring collisions).