#[repr(C)]pub struct CTup4<A, B, C, D>(pub A, pub B, pub C, pub D);
Expand description
FFI-safe 4 element tuple.
Tuple Fields
0: A
1: B
2: C
3: D
Implementations
sourceimpl<A, B, C, D> CTup4<A, B, C, D>
impl<A, B, C, D> CTup4<A, B, C, D>
sourcepub fn into_tuple(self) -> (A, B, C, D)
pub fn into_tuple(self) -> (A, B, C, D)
Convert this C tuple into Rust tuple.
Trait Implementations
sourceimpl<A: Ord, B: Ord, C: Ord, D: Ord> Ord for CTup4<A, B, C, D>
impl<A: Ord, B: Ord, C: Ord, D: Ord> Ord for CTup4<A, B, C, D>
sourceimpl<A: PartialEq, B: PartialEq, C: PartialEq, D: PartialEq> PartialEq<CTup4<A, B, C, D>> for CTup4<A, B, C, D>
impl<A: PartialEq, B: PartialEq, C: PartialEq, D: PartialEq> PartialEq<CTup4<A, B, C, D>> for CTup4<A, B, C, D>
sourceimpl<A: PartialOrd, B: PartialOrd, C: PartialOrd, D: PartialOrd> PartialOrd<CTup4<A, B, C, D>> for CTup4<A, B, C, D>
impl<A: PartialOrd, B: PartialOrd, C: PartialOrd, D: PartialOrd> PartialOrd<CTup4<A, B, C, D>> for CTup4<A, B, C, D>
sourcefn partial_cmp(&self, other: &CTup4<A, B, C, D>) -> Option<Ordering>
fn partial_cmp(&self, other: &CTup4<A, B, C, D>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl<A: Copy, B: Copy, C: Copy, D: Copy> Copy for CTup4<A, B, C, D>
impl<A: Eq, B: Eq, C: Eq, D: Eq> Eq for CTup4<A, B, C, D>
impl<A, B, C, D> StructuralEq for CTup4<A, B, C, D>
impl<A, B, C, D> StructuralPartialEq for CTup4<A, B, C, D>
Auto Trait Implementations
impl<A, B, C, D> RefUnwindSafe for CTup4<A, B, C, D> where
A: RefUnwindSafe,
B: RefUnwindSafe,
C: RefUnwindSafe,
D: RefUnwindSafe,
impl<A, B, C, D> Send for CTup4<A, B, C, D> where
A: Send,
B: Send,
C: Send,
D: Send,
impl<A, B, C, D> Sync for CTup4<A, B, C, D> where
A: Sync,
B: Sync,
C: Sync,
D: Sync,
impl<A, B, C, D> Unpin for CTup4<A, B, C, D> where
A: Unpin,
B: Unpin,
C: Unpin,
D: Unpin,
impl<A, B, C, D> UnwindSafe for CTup4<A, B, C, D> where
A: UnwindSafe,
B: UnwindSafe,
C: UnwindSafe,
D: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more