#[repr(C)]pub struct NrTuple<A, B> {
pub a: A,
pub b: B,
}Expand description
A tuple of two elements.
This struct is #[repr(C)] and ABI-stable.
Fields§
§a: A§b: BTrait Implementations§
impl<A: Copy, B: Copy> Copy for NrTuple<A, B>
impl<A: Eq, B: Eq> Eq for NrTuple<A, B>
Source§impl<A: Ord, B: Ord> Ord for NrTuple<A, B>
impl<A: Ord, B: Ord> Ord for NrTuple<A, B>
1.21.0 (const: unstable) · 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<A: PartialOrd, B: PartialOrd> PartialOrd for NrTuple<A, B>
impl<A: PartialOrd, B: PartialOrd> PartialOrd for NrTuple<A, B>
impl<A: Send, B: Send> Send for NrTuple<A, B>
impl<A: PartialEq, B: PartialEq> StructuralPartialEq for NrTuple<A, B>
impl<A: Sync, B: Sync> Sync for NrTuple<A, B>
Auto Trait Implementations§
impl<A, B> Freeze for NrTuple<A, B>
impl<A, B> RefUnwindSafe for NrTuple<A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Unpin for NrTuple<A, B>
impl<A, B> UnsafeUnpin for NrTuple<A, B>where
A: UnsafeUnpin,
B: UnsafeUnpin,
impl<A, B> UnwindSafe for NrTuple<A, B>where
A: UnwindSafe,
B: UnwindSafe,
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