[][src]Struct abi_stable::std_types::Tuple4

#[repr(C)]
pub struct Tuple4<A, B, C, D>(pub A, pub B, pub C, pub D);

An ffi safe 1 element tuple.

Methods

impl<A, B, C, D> Tuple4<A, B, C, D>[src]

pub fn into_tuple(self) -> (A, B, C, D)[src]

Converts this Tuple4 to a 4-tuple.

Example

use abi_stable::std_types::tuple::*;
 
assert_eq!( Tuple4(1,2,3,4).into_tuple(), (1,2,3,4) );
 

Trait Implementations

impl<A, B, C, D> IntoReprRust for Tuple4<A, B, C, D>[src]

type ReprRust = (A, B, C, D)

impl<A, B, C, D> GetStaticEquivalent_ for Tuple4<A, B, C, D> where
    A: __StableAbi,
    B: __StableAbi,
    C: __StableAbi,
    D: __StableAbi
[src]

impl<A, B, C, D> SharedStableAbi for Tuple4<A, B, C, D> where
    A: __StableAbi,
    B: __StableAbi,
    C: __StableAbi,
    D: __StableAbi
[src]

type IsNonZeroType = False

Whether this type has a single invalid bit-pattern. Read more

type Kind = __ValueKind

The kind of abi stability of this type,there are 2: Read more

impl<A, B, C, D> Into<(A, B, C, D)> for Tuple4<A, B, C, D>[src]

impl<A, B, C, D> From<(A, B, C, D)> for Tuple4<A, B, C, D>[src]

impl<A: Clone, B: Clone, C: Clone, D: Clone> Clone for Tuple4<A, B, C, D>[src]

impl<A: Copy, B: Copy, C: Copy, D: Copy> Copy for Tuple4<A, B, C, D>[src]

impl<A: Eq, B: Eq, C: Eq, D: Eq> Eq for Tuple4<A, B, C, D>[src]

impl<A: Ord, B: Ord, C: Ord, D: Ord> Ord for Tuple4<A, B, C, D>[src]

impl<A: PartialEq, B: PartialEq, C: PartialEq, D: PartialEq> PartialEq<Tuple4<A, B, C, D>> for Tuple4<A, B, C, D>[src]

impl<A: PartialOrd, B: PartialOrd, C: PartialOrd, D: PartialOrd> PartialOrd<Tuple4<A, B, C, D>> for Tuple4<A, B, C, D>[src]

impl<A: Debug, B: Debug, C: Debug, D: Debug> Debug for Tuple4<A, B, C, D>[src]

impl<A: Hash, B: Hash, C: Hash, D: Hash> Hash for Tuple4<A, B, C, D>[src]

Auto Trait Implementations

impl<A, B, C, D> Send for Tuple4<A, B, C, D> where
    A: Send,
    B: Send,
    C: Send,
    D: Send

impl<A, B, C, D> Sync for Tuple4<A, B, C, D> where
    A: Sync,
    B: Sync,
    C: Sync,
    D: Sync

impl<A, B, C, D> Unpin for Tuple4<A, B, C, D> where
    A: Unpin,
    B: Unpin,
    C: Unpin,
    D: Unpin

impl<A, B, C, D> UnwindSafe for Tuple4<A, B, C, D> where
    A: UnwindSafe,
    B: UnwindSafe,
    C: UnwindSafe,
    D: UnwindSafe

impl<A, B, C, D> RefUnwindSafe for Tuple4<A, B, C, D> where
    A: RefUnwindSafe,
    B: RefUnwindSafe,
    C: RefUnwindSafe,
    D: RefUnwindSafe

Blanket Implementations

impl<This> GetConstGenericVTable for This where
    This: StableAbi + Eq + PartialEq<This> + Debug + Send + Sync
[src]

impl<This> StableAbi for This where
    This: SharedStableAbi<Kind = ValueKind>, 
[src]

impl<This> TransmuteElement for This where
    This: ?Sized
[src]

impl<'a, T> BorrowOwned<'a> for T where
    T: 'a + Clone
[src]

type ROwned = T

type RBorrowed = &'a T

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> TypeIdentity for T where
    T: ?Sized
[src]

type Type = T

The same type as Self. Read more

impl<T> SelfOps for T where
    T: ?Sized
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The error type returned when the conversion fails.