Struct stabby_abi::Tuple
source · #[repr(C)]pub struct Tuple<A, B>(pub A, pub B);
Expand description
An ABI-stable tuple.
Tuple Fields§
§0: A
§1: B
Implementations§
Trait Implementations§
source§impl<A, B> IStable for Tuple<A, B>
impl<A, B> IStable for Tuple<A, B>
§type ForbiddenValues = <Struct<FieldPair<A, B>> as IStable>::ForbiddenValues
type ForbiddenValues = <Struct<FieldPair<A, B>> as IStable>::ForbiddenValues
The values that the annotated type cannot occupy.
§type UnusedBits = <Struct<FieldPair<A, B>> as IStable>::UnusedBits
type UnusedBits = <Struct<FieldPair<A, B>> as IStable>::UnusedBits
The padding bits in the annotated types
§type Align = <Struct<FieldPair<A, B>> as IStable>::Align
type Align = <Struct<FieldPair<A, B>> as IStable>::Align
The alignment of the annotated type in bytes.
§type HasExactlyOneNiche = <Struct<FieldPair<A, B>> as IStable>::HasExactlyOneNiche
type HasExactlyOneNiche = <Struct<FieldPair<A, B>> as IStable>::HasExactlyOneNiche
Allows the detection of whether or not
core::option::Option
s are stable: Read more§type ContainsIndirections = <Struct<FieldPair<A, B>> as IStable>::ContainsIndirections
type ContainsIndirections = <Struct<FieldPair<A, B>> as IStable>::ContainsIndirections
Whether or not the type contains indirections (pointers, indices in independent data-structures…)
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§impl<A: PartialEq, B: PartialEq> PartialEq for Tuple<A, B>
impl<A: PartialEq, B: PartialEq> PartialEq for Tuple<A, B>
impl<A: Copy, B: Copy> Copy for Tuple<A, B>
impl<A: Eq, B: Eq> Eq for Tuple<A, B>
impl<A, B> StructuralPartialEq for Tuple<A, B>
Auto Trait Implementations§
impl<A, B> Freeze for Tuple<A, B>
impl<A, B> RefUnwindSafe for Tuple<A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for Tuple<A, B>
impl<A, B> Sync for Tuple<A, B>
impl<A, B> Unpin for Tuple<A, B>
impl<A, B> UnwindSafe for Tuple<A, B>where
A: UnwindSafe,
B: 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> 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).