Skip to main content

TupleLend

Trait TupleLend 

Source
pub trait TupleLend<'a> {
    type First: 'a;
    type Second: 'a;

    // Required method
    fn tuple_lend(self) -> (Self::First, Self::Second);
}
Expand description

Trait for lend types that can be destructured into two components, used by Lender::unzip() and FallibleLender::unzip().

Implemented for (A, B), &(A, B), and &mut (A, B).

Required Associated Types§

Source

type First: 'a

Source

type Second: 'a

Required Methods§

Source

fn tuple_lend(self) -> (Self::First, Self::Second)

Implementations on Foreign Types§

Source§

impl<'a, A, B> TupleLend<'a> for &'a (A, B)

Source§

type First = &'a A

Source§

type Second = &'a B

Source§

fn tuple_lend(self) -> (Self::First, Self::Second)

Source§

impl<'a, A, B> TupleLend<'a> for &'a mut (A, B)

Source§

impl<'a, A: 'a, B: 'a> TupleLend<'a> for (A, B)

Source§

type First = A

Source§

type Second = B

Source§

fn tuple_lend(self) -> (Self::First, Self::Second)

Implementors§