Struct safer_ffi::tuple::Tuple2[][src]

#[repr(C)]
pub struct Tuple2<T0, T1> { pub _0: T0, pub _1: T1, }
Expand description

Simplified for lighter documentation, but the actual impls range from Tuple1 up to Tuple6.

C Layout

Fields

_0: T0_1: T1

Trait Implementations

impl<T0: Debug, T1: Debug> Debug for Tuple2<T0, T1>[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl<T0, T1> ReprC for Tuple2<T0, T1> where
    T0: ReprC,
    <T0 as ReprC>::CLayout: CType<OPAQUE_KIND = Concrete>,
    T1: ReprC,
    <T1 as ReprC>::CLayout: CType<OPAQUE_KIND = Concrete>,
    T0: ReprC,
    T1: ReprC
[src]

type CLayout = Tuple2_Layout<T0, T1>

The CType having the same layout as Self.

fn is_valid(it: &Self::CLayout) -> bool[src]

Sanity checks that can be performed on an instance of the CType layout. Read more

Auto Trait Implementations

impl<T0, T1> RefUnwindSafe for Tuple2<T0, T1> where
    T0: RefUnwindSafe,
    T1: RefUnwindSafe

impl<T0, T1> Send for Tuple2<T0, T1> where
    T0: Send,
    T1: Send

impl<T0, T1> Sync for Tuple2<T0, T1> where
    T0: Sync,
    T1: Sync

impl<T0, T1> Unpin for Tuple2<T0, T1> where
    T0: Unpin,
    T1: Unpin

impl<T0, T1> UnwindSafe for Tuple2<T0, T1> where
    T0: UnwindSafe,
    T1: UnwindSafe

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> ManuallyDropMut for T[src]

type Ret = ManuallyDrop<T>

pub fn manually_drop_mut(&'__ mut self) -> &'__ mut ManuallyDrop<T>[src]

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.