[−][src]Trait typelayout::Generic
A trait that converts from a type to a generic representation.
For the most part, you should be using the derivation that is available
through frunk_derive
to generate instances of this trait for your types.
Laws
Any implementation of Generic
must satisfy the following two laws:
forall x : Self. x == Generic::from(Generic::into(x))
forall y : Repr. y == Generic::into(Generic::from(y))
That is, from
and into
should make up an isomorphism between
Self
and the representation type Repr
.
Examples
#[macro_use] extern crate frunk; #[macro_use] extern crate frunk_core; #[derive(Generic)] struct ApiPerson<'a> { FirstName: &'a str, LastName: &'a str, Age: usize, } #[derive(Generic)] struct DomainPerson<'a> { first_name: &'a str, last_name: &'a str, age: usize, } let a_person = ApiPerson { FirstName: "Joe", LastName: "Blow", Age: 30, }; let d_person: DomainPerson = frunk::convert_from(a_person); // done
Associated Types
type Repr
The generic representation type.
Required methods
fn into(self) -> Self::Repr
Convert a value to its representation type Repr
.
fn from(repr: Self::Repr) -> Self
Convert a value's representation type Repr
to the value's type.
Provided methods
fn convert_from<Src>(src: Src) -> Self where
Src: Generic<Repr = Self::Repr>,
Src: Generic<Repr = Self::Repr>,
Convert a value to another type provided that they have the same representation type.
fn map_repr<Mapper>(self, mapper: Mapper) -> Self where
Mapper: FnOnce(Self::Repr) -> Self::Repr,
Mapper: FnOnce(Self::Repr) -> Self::Repr,
Maps the given value of type Self
by first transforming it to
the representation type Repr
, then applying a mapper
function
on Repr
and finally transforming it back to a value of type Self
.
fn map_inter<Inter, Mapper>(self, mapper: Mapper) -> Self where
Inter: Generic<Repr = Self::Repr>,
Mapper: FnOnce(Inter) -> Inter,
Inter: Generic<Repr = Self::Repr>,
Mapper: FnOnce(Inter) -> Inter,
Maps the given value of type Self
by first transforming it
a type Inter
that has the same representation type as Self
,
then applying a mapper
function on Inter
and finally transforming
it back to a value of type Self
.
Implementations on Foreign Types
impl<T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0> Generic for (T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0)
[src]
type Repr = HCons<T11, HCons<T10, HCons<T9, HCons<T8, HCons<T7, HCons<T6, HCons<T5, HCons<T4, HCons<T3, HCons<T2, HCons<T1, HCons<T0, HNil>>>>>>>>>>>>
fn into(
self
) -> <(T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
[src]
self
) -> <(T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
fn from(
r: <(T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
) -> (T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0)
[src]
r: <(T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
) -> (T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0)
impl<T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0> Generic for (T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0)
[src]
type Repr = HCons<T10, HCons<T9, HCons<T8, HCons<T7, HCons<T6, HCons<T5, HCons<T4, HCons<T3, HCons<T2, HCons<T1, HCons<T0, HNil>>>>>>>>>>>
fn into(
self
) -> <(T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
[src]
self
) -> <(T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
fn from(
r: <(T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
) -> (T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0)
[src]
r: <(T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
) -> (T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0)
impl<T17, T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0> Generic for (T17, T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0)
[src]
type Repr = HCons<T17, HCons<T16, HCons<T15, HCons<T14, HCons<T13, HCons<T12, HCons<T11, HCons<T10, HCons<T9, HCons<T8, HCons<T7, HCons<T6, HCons<T5, HCons<T4, HCons<T3, HCons<T2, HCons<T1, HCons<T0, HNil>>>>>>>>>>>>>>>>>>
fn into(
self
) -> <(T17, T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
[src]
self
) -> <(T17, T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
fn from(
r: <(T17, T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
) -> (T17, T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0)
[src]
r: <(T17, T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
) -> (T17, T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0)
impl<T9, T8, T7, T6, T5, T4, T3, T2, T1, T0> Generic for (T9, T8, T7, T6, T5, T4, T3, T2, T1, T0)
[src]
type Repr = HCons<T9, HCons<T8, HCons<T7, HCons<T6, HCons<T5, HCons<T4, HCons<T3, HCons<T2, HCons<T1, HCons<T0, HNil>>>>>>>>>>
fn into(self) -> <(T9, T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
[src]
fn from(
r: <(T9, T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
) -> (T9, T8, T7, T6, T5, T4, T3, T2, T1, T0)
[src]
r: <(T9, T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
) -> (T9, T8, T7, T6, T5, T4, T3, T2, T1, T0)
impl<T1, T0> Generic for (T1, T0)
[src]
type Repr = HCons<T1, HCons<T0, HNil>>
fn into(self) -> <(T1, T0) as Generic>::Repr
[src]
fn from(r: <(T1, T0) as Generic>::Repr) -> (T1, T0)
[src]
impl<T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0> Generic for (T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0)
[src]
type Repr = HCons<T15, HCons<T14, HCons<T13, HCons<T12, HCons<T11, HCons<T10, HCons<T9, HCons<T8, HCons<T7, HCons<T6, HCons<T5, HCons<T4, HCons<T3, HCons<T2, HCons<T1, HCons<T0, HNil>>>>>>>>>>>>>>>>
fn into(
self
) -> <(T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
[src]
self
) -> <(T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
fn from(
r: <(T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
) -> (T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0)
[src]
r: <(T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
) -> (T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0)
impl<T2, T1, T0> Generic for (T2, T1, T0)
[src]
type Repr = HCons<T2, HCons<T1, HCons<T0, HNil>>>
fn into(self) -> <(T2, T1, T0) as Generic>::Repr
[src]
fn from(r: <(T2, T1, T0) as Generic>::Repr) -> (T2, T1, T0)
[src]
impl<T3, T2, T1, T0> Generic for (T3, T2, T1, T0)
[src]
type Repr = HCons<T3, HCons<T2, HCons<T1, HCons<T0, HNil>>>>
fn into(self) -> <(T3, T2, T1, T0) as Generic>::Repr
[src]
fn from(r: <(T3, T2, T1, T0) as Generic>::Repr) -> (T3, T2, T1, T0)
[src]
impl<T19, T18, T17, T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0> Generic for (T19, T18, T17, T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0)
[src]
type Repr = HCons<T19, HCons<T18, HCons<T17, HCons<T16, HCons<T15, HCons<T14, HCons<T13, HCons<T12, HCons<T11, HCons<T10, HCons<T9, HCons<T8, HCons<T7, HCons<T6, HCons<T5, HCons<T4, HCons<T3, HCons<T2, HCons<T1, HCons<T0, HNil>>>>>>>>>>>>>>>>>>>>
fn into(
self
) -> <(T19, T18, T17, T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
[src]
self
) -> <(T19, T18, T17, T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
fn from(
r: <(T19, T18, T17, T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
) -> (T19, T18, T17, T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0)
[src]
r: <(T19, T18, T17, T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
) -> (T19, T18, T17, T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0)
impl<T6, T5, T4, T3, T2, T1, T0> Generic for (T6, T5, T4, T3, T2, T1, T0)
[src]
type Repr = HCons<T6, HCons<T5, HCons<T4, HCons<T3, HCons<T2, HCons<T1, HCons<T0, HNil>>>>>>>
fn into(self) -> <(T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
[src]
fn from(
r: <(T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
) -> (T6, T5, T4, T3, T2, T1, T0)
[src]
r: <(T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
) -> (T6, T5, T4, T3, T2, T1, T0)
impl<T8, T7, T6, T5, T4, T3, T2, T1, T0> Generic for (T8, T7, T6, T5, T4, T3, T2, T1, T0)
[src]
type Repr = HCons<T8, HCons<T7, HCons<T6, HCons<T5, HCons<T4, HCons<T3, HCons<T2, HCons<T1, HCons<T0, HNil>>>>>>>>>
fn into(self) -> <(T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
[src]
fn from(
r: <(T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
) -> (T8, T7, T6, T5, T4, T3, T2, T1, T0)
[src]
r: <(T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
) -> (T8, T7, T6, T5, T4, T3, T2, T1, T0)
impl<T4, T3, T2, T1, T0> Generic for (T4, T3, T2, T1, T0)
[src]
type Repr = HCons<T4, HCons<T3, HCons<T2, HCons<T1, HCons<T0, HNil>>>>>
fn into(self) -> <(T4, T3, T2, T1, T0) as Generic>::Repr
[src]
fn from(r: <(T4, T3, T2, T1, T0) as Generic>::Repr) -> (T4, T3, T2, T1, T0)
[src]
impl<T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0> Generic for (T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0)
[src]
type Repr = HCons<T12, HCons<T11, HCons<T10, HCons<T9, HCons<T8, HCons<T7, HCons<T6, HCons<T5, HCons<T4, HCons<T3, HCons<T2, HCons<T1, HCons<T0, HNil>>>>>>>>>>>>>
fn into(
self
) -> <(T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
[src]
self
) -> <(T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
fn from(
r: <(T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
) -> (T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0)
[src]
r: <(T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
) -> (T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0)
impl<T23, T22, T21, T20, T19, T18, T17, T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0> Generic for (T23, T22, T21, T20, T19, T18, T17, T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0)
[src]
type Repr = HCons<T23, HCons<T22, HCons<T21, HCons<T20, HCons<T19, HCons<T18, HCons<T17, HCons<T16, HCons<T15, HCons<T14, HCons<T13, HCons<T12, HCons<T11, HCons<T10, HCons<T9, HCons<T8, HCons<T7, HCons<T6, HCons<T5, HCons<T4, HCons<T3, HCons<T2, HCons<T1, HCons<T0, HNil>>>>>>>>>>>>>>>>>>>>>>>>
fn into(
self
) -> <(T23, T22, T21, T20, T19, T18, T17, T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
[src]
self
) -> <(T23, T22, T21, T20, T19, T18, T17, T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
fn from(
r: <(T23, T22, T21, T20, T19, T18, T17, T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
) -> (T23, T22, T21, T20, T19, T18, T17, T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0)
[src]
r: <(T23, T22, T21, T20, T19, T18, T17, T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
) -> (T23, T22, T21, T20, T19, T18, T17, T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0)
impl<T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0> Generic for (T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0)
[src]
type Repr = HCons<T13, HCons<T12, HCons<T11, HCons<T10, HCons<T9, HCons<T8, HCons<T7, HCons<T6, HCons<T5, HCons<T4, HCons<T3, HCons<T2, HCons<T1, HCons<T0, HNil>>>>>>>>>>>>>>
fn into(
self
) -> <(T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
[src]
self
) -> <(T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
fn from(
r: <(T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
) -> (T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0)
[src]
r: <(T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
) -> (T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0)
impl<T7, T6, T5, T4, T3, T2, T1, T0> Generic for (T7, T6, T5, T4, T3, T2, T1, T0)
[src]
type Repr = HCons<T7, HCons<T6, HCons<T5, HCons<T4, HCons<T3, HCons<T2, HCons<T1, HCons<T0, HNil>>>>>>>>
fn into(self) -> <(T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
[src]
fn from(
r: <(T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
) -> (T7, T6, T5, T4, T3, T2, T1, T0)
[src]
r: <(T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
) -> (T7, T6, T5, T4, T3, T2, T1, T0)
impl<T20, T19, T18, T17, T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0> Generic for (T20, T19, T18, T17, T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0)
[src]
type Repr = HCons<T20, HCons<T19, HCons<T18, HCons<T17, HCons<T16, HCons<T15, HCons<T14, HCons<T13, HCons<T12, HCons<T11, HCons<T10, HCons<T9, HCons<T8, HCons<T7, HCons<T6, HCons<T5, HCons<T4, HCons<T3, HCons<T2, HCons<T1, HCons<T0, HNil>>>>>>>>>>>>>>>>>>>>>
fn into(
self
) -> <(T20, T19, T18, T17, T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
[src]
self
) -> <(T20, T19, T18, T17, T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
fn from(
r: <(T20, T19, T18, T17, T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
) -> (T20, T19, T18, T17, T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0)
[src]
r: <(T20, T19, T18, T17, T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
) -> (T20, T19, T18, T17, T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0)
impl<T18, T17, T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0> Generic for (T18, T17, T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0)
[src]
type Repr = HCons<T18, HCons<T17, HCons<T16, HCons<T15, HCons<T14, HCons<T13, HCons<T12, HCons<T11, HCons<T10, HCons<T9, HCons<T8, HCons<T7, HCons<T6, HCons<T5, HCons<T4, HCons<T3, HCons<T2, HCons<T1, HCons<T0, HNil>>>>>>>>>>>>>>>>>>>
fn into(
self
) -> <(T18, T17, T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
[src]
self
) -> <(T18, T17, T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
fn from(
r: <(T18, T17, T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
) -> (T18, T17, T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0)
[src]
r: <(T18, T17, T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
) -> (T18, T17, T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0)
impl<T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0> Generic for (T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0)
[src]
type Repr = HCons<T16, HCons<T15, HCons<T14, HCons<T13, HCons<T12, HCons<T11, HCons<T10, HCons<T9, HCons<T8, HCons<T7, HCons<T6, HCons<T5, HCons<T4, HCons<T3, HCons<T2, HCons<T1, HCons<T0, HNil>>>>>>>>>>>>>>>>>
fn into(
self
) -> <(T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
[src]
self
) -> <(T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
fn from(
r: <(T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
) -> (T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0)
[src]
r: <(T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
) -> (T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0)
impl<T21, T20, T19, T18, T17, T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0> Generic for (T21, T20, T19, T18, T17, T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0)
[src]
type Repr = HCons<T21, HCons<T20, HCons<T19, HCons<T18, HCons<T17, HCons<T16, HCons<T15, HCons<T14, HCons<T13, HCons<T12, HCons<T11, HCons<T10, HCons<T9, HCons<T8, HCons<T7, HCons<T6, HCons<T5, HCons<T4, HCons<T3, HCons<T2, HCons<T1, HCons<T0, HNil>>>>>>>>>>>>>>>>>>>>>>
fn into(
self
) -> <(T21, T20, T19, T18, T17, T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
[src]
self
) -> <(T21, T20, T19, T18, T17, T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
fn from(
r: <(T21, T20, T19, T18, T17, T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
) -> (T21, T20, T19, T18, T17, T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0)
[src]
r: <(T21, T20, T19, T18, T17, T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
) -> (T21, T20, T19, T18, T17, T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0)
impl<T0> Generic for (T0,)
[src]
type Repr = HCons<T0, HNil>
fn into(self) -> <(T0,) as Generic>::Repr
[src]
fn from(r: <(T0,) as Generic>::Repr) -> (T0,)
[src]
impl Generic for ()
[src]
impl<T5, T4, T3, T2, T1, T0> Generic for (T5, T4, T3, T2, T1, T0)
[src]
type Repr = HCons<T5, HCons<T4, HCons<T3, HCons<T2, HCons<T1, HCons<T0, HNil>>>>>>
fn into(self) -> <(T5, T4, T3, T2, T1, T0) as Generic>::Repr
[src]
fn from(
r: <(T5, T4, T3, T2, T1, T0) as Generic>::Repr
) -> (T5, T4, T3, T2, T1, T0)
[src]
r: <(T5, T4, T3, T2, T1, T0) as Generic>::Repr
) -> (T5, T4, T3, T2, T1, T0)
impl<T22, T21, T20, T19, T18, T17, T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0> Generic for (T22, T21, T20, T19, T18, T17, T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0)
[src]
type Repr = HCons<T22, HCons<T21, HCons<T20, HCons<T19, HCons<T18, HCons<T17, HCons<T16, HCons<T15, HCons<T14, HCons<T13, HCons<T12, HCons<T11, HCons<T10, HCons<T9, HCons<T8, HCons<T7, HCons<T6, HCons<T5, HCons<T4, HCons<T3, HCons<T2, HCons<T1, HCons<T0, HNil>>>>>>>>>>>>>>>>>>>>>>>
fn into(
self
) -> <(T22, T21, T20, T19, T18, T17, T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
[src]
self
) -> <(T22, T21, T20, T19, T18, T17, T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
fn from(
r: <(T22, T21, T20, T19, T18, T17, T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
) -> (T22, T21, T20, T19, T18, T17, T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0)
[src]
r: <(T22, T21, T20, T19, T18, T17, T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
) -> (T22, T21, T20, T19, T18, T17, T16, T15, T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0)
impl<T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0> Generic for (T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0)
[src]
type Repr = HCons<T14, HCons<T13, HCons<T12, HCons<T11, HCons<T10, HCons<T9, HCons<T8, HCons<T7, HCons<T6, HCons<T5, HCons<T4, HCons<T3, HCons<T2, HCons<T1, HCons<T0, HNil>>>>>>>>>>>>>>>
fn into(
self
) -> <(T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
[src]
self
) -> <(T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
fn from(
r: <(T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
) -> (T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0)
[src]
r: <(T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0) as Generic>::Repr
) -> (T14, T13, T12, T11, T10, T9, T8, T7, T6, T5, T4, T3, T2, T1, T0)