Struct rkyv::tuple::ArchivedTuple2
source · #[repr(C)]pub struct ArchivedTuple2<T0, T1>(pub T0, pub T1);
Expand description
An archived tuple with 2 elements
Tuple Fields§
§0: T0
§1: T1
Trait Implementations§
source§impl<T0, T1, __C: Fallible + ?Sized> CheckBytes<__C> for ArchivedTuple2<T0, T1>
impl<T0, T1, __C: Fallible + ?Sized> CheckBytes<__C> for ArchivedTuple2<T0, T1>
source§impl<T0: Default, T1: Default> Default for ArchivedTuple2<T0, T1>
impl<T0: Default, T1: Default> Default for ArchivedTuple2<T0, T1>
source§fn default() -> ArchivedTuple2<T0, T1>
fn default() -> ArchivedTuple2<T0, T1>
Returns the “default value” for a type. Read more
source§impl<T0, T1, D> Deserialize<(T0, T1), D> for ArchivedTuple2<T0::Archived, T1::Archived>where
D: Fallible + ?Sized,
T0: Archive,
T1: Archive,
T0::Archived: Deserialize<T0, D>,
T1::Archived: Deserialize<T1, D>,
impl<T0, T1, D> Deserialize<(T0, T1), D> for ArchivedTuple2<T0::Archived, T1::Archived>where
D: Fallible + ?Sized,
T0: Archive,
T1: Archive,
T0::Archived: Deserialize<T0, D>,
T1::Archived: Deserialize<T1, D>,
source§impl<T0: Ord, T1: Ord> Ord for ArchivedTuple2<T0, T1>
impl<T0: Ord, T1: Ord> Ord for ArchivedTuple2<T0, T1>
source§fn cmp(&self, other: &ArchivedTuple2<T0, T1>) -> Ordering
fn cmp(&self, other: &ArchivedTuple2<T0, T1>) -> 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<T0: PartialOrd, T1: PartialOrd> PartialOrd for ArchivedTuple2<T0, T1>
impl<T0: PartialOrd, T1: PartialOrd> PartialOrd for ArchivedTuple2<T0, T1>
impl<T0: Eq, T1: Eq> Eq for ArchivedTuple2<T0, T1>
impl<T0, T1> Portable for ArchivedTuple2<T0, T1>
impl<T0, T1> StructuralPartialEq for ArchivedTuple2<T0, T1>
Auto Trait Implementations§
impl<T0, T1> Freeze for ArchivedTuple2<T0, T1>
impl<T0, T1> RefUnwindSafe for ArchivedTuple2<T0, T1>where
T0: RefUnwindSafe,
T1: RefUnwindSafe,
impl<T0, T1> Send for ArchivedTuple2<T0, T1>
impl<T0, T1> Sync for ArchivedTuple2<T0, T1>
impl<T0, T1> Unpin for ArchivedTuple2<T0, T1>
impl<T0, T1> UnwindSafe for ArchivedTuple2<T0, T1>where
T0: UnwindSafe,
T1: UnwindSafe,
Blanket Implementations§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.