[][src]Struct abi_stable::std_types::tuple::Tuple2

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

An ffi safe 1 element tuple.

Methods

impl<A, B> Tuple2<A, B>[src]

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

Converts this Tuple2 to a pair.

Example

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

Trait Implementations

impl<A, B> IntoReprRust for Tuple2<A, B>[src]

type ReprRust = (A, B)

impl<A, B> GetStaticEquivalent_ for Tuple2<A, B> where
    A: __StableAbi,
    B: __StableAbi
[src]

impl<A, B> SharedStableAbi for Tuple2<A, B> where
    A: __StableAbi,
    B: __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> Into<(A, B)> for Tuple2<A, B>[src]

impl<A, B> From<(A, B)> for Tuple2<A, B>[src]

impl<K, V, S> Extend<Tuple2<K, V>> for RHashMap<K, V, S>[src]

impl<A: Clone, B: Clone> Clone for Tuple2<A, B>[src]

impl<A: Copy, B: Copy> Copy for Tuple2<A, B>[src]

impl<A: Eq, B: Eq> Eq for Tuple2<A, B>[src]

impl<A: Ord, B: Ord> Ord for Tuple2<A, B>[src]

impl<A: PartialEq, B: PartialEq> PartialEq<Tuple2<A, B>> for Tuple2<A, B>[src]

impl<A: PartialOrd, B: PartialOrd> PartialOrd<Tuple2<A, B>> for Tuple2<A, B>[src]

impl<A: Debug, B: Debug> Debug for Tuple2<A, B>[src]

impl<A: Hash, B: Hash> Hash for Tuple2<A, B>[src]

impl<K, V, S> FromIterator<Tuple2<K, V>> for RHashMap<K, V, S> where
    Self: Default
[src]

Auto Trait Implementations

impl<A, B> Send for Tuple2<A, B> where
    A: Send,
    B: Send

impl<A, B> Sync for Tuple2<A, B> where
    A: Sync,
    B: Sync

impl<A, B> Unpin for Tuple2<A, B> where
    A: Unpin,
    B: Unpin

impl<A, B> UnwindSafe for Tuple2<A, B> where
    A: UnwindSafe,
    B: UnwindSafe

impl<A, B> RefUnwindSafe for Tuple2<A, B> where
    A: RefUnwindSafe,
    B: 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.