Trait libafl::bolts::tuples::TupleList[][src]

pub trait TupleList {
    type Tuple: Tuple;

    const TUPLE_LIST_SIZE: usize;

    fn into_tuple(self) -> Self::Tuple;
}
Expand description

Trait providing conversion from tuple list into tuple.

Generic trait implemented for all tuple lists (up to 12 elements).

Examples

use crate::tuple_list::tuple_list;
use crate::tuple_list::TupleList;
 
let tuple_list = tuple_list!(1, false, "abc");
 
assert_eq!(
    tuple_list.into_tuple(),
    (1, false, "abc"),
);

Associated Types

type Tuple: Tuple[src]

Tuple type corresponding to given tuple list.

Associated Constants

const TUPLE_LIST_SIZE: usize[src]

Constant representing tuple list size.

Required methods

fn into_tuple(self) -> Self::Tuple[src]

Converts tuple list into tuple.

Implementations on Foreign Types

impl<T1> TupleList for (T1, ())[src]

type Tuple = (T1,)

pub const TUPLE_LIST_SIZE: usize[src]

pub fn into_tuple(self) -> <(T1, ()) as TupleList>::Tuple[src]

impl<T1, T2, T3> TupleList for (T1, (T2, (T3, ())))[src]

type Tuple = (T1, T2, T3)

pub const TUPLE_LIST_SIZE: usize[src]

pub fn into_tuple(self) -> <(T1, (T2, (T3, ()))) as TupleList>::Tuple[src]

impl<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> TupleList for (T1, (T2, (T3, (T4, (T5, (T6, (T7, (T8, (T9, (T10, (T11, ())))))))))))[src]

type Tuple = (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)

pub const TUPLE_LIST_SIZE: usize[src]

pub fn into_tuple(
    self
) -> <(T1, (T2, (T3, (T4, (T5, (T6, (T7, (T8, (T9, (T10, (T11, ()))))))))))) as TupleList>::Tuple
[src]

impl<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> TupleList for (T1, (T2, (T3, (T4, (T5, (T6, (T7, (T8, (T9, (T10, (T11, (T12, ()))))))))))))[src]

type Tuple = (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)

pub const TUPLE_LIST_SIZE: usize[src]

pub fn into_tuple(
    self
) -> <(T1, (T2, (T3, (T4, (T5, (T6, (T7, (T8, (T9, (T10, (T11, (T12, ())))))))))))) as TupleList>::Tuple
[src]

impl TupleList for ()[src]

type Tuple = ()

pub const TUPLE_LIST_SIZE: usize[src]

pub fn into_tuple(self)[src]

impl<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> TupleList for (T1, (T2, (T3, (T4, (T5, (T6, (T7, (T8, (T9, (T10, ()))))))))))[src]

type Tuple = (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)

pub const TUPLE_LIST_SIZE: usize[src]

pub fn into_tuple(
    self
) -> <(T1, (T2, (T3, (T4, (T5, (T6, (T7, (T8, (T9, (T10, ())))))))))) as TupleList>::Tuple
[src]

impl<T1, T2, T3, T4> TupleList for (T1, (T2, (T3, (T4, ()))))[src]

type Tuple = (T1, T2, T3, T4)

pub const TUPLE_LIST_SIZE: usize[src]

pub fn into_tuple(self) -> <(T1, (T2, (T3, (T4, ())))) as TupleList>::Tuple[src]

impl<T1, T2, T3, T4, T5, T6> TupleList for (T1, (T2, (T3, (T4, (T5, (T6, ()))))))[src]

type Tuple = (T1, T2, T3, T4, T5, T6)

pub const TUPLE_LIST_SIZE: usize[src]

pub fn into_tuple(
    self
) -> <(T1, (T2, (T3, (T4, (T5, (T6, ())))))) as TupleList>::Tuple
[src]

impl<T1, T2, T3, T4, T5, T6, T7> TupleList for (T1, (T2, (T3, (T4, (T5, (T6, (T7, ())))))))[src]

type Tuple = (T1, T2, T3, T4, T5, T6, T7)

pub const TUPLE_LIST_SIZE: usize[src]

pub fn into_tuple(
    self
) -> <(T1, (T2, (T3, (T4, (T5, (T6, (T7, ()))))))) as TupleList>::Tuple
[src]

impl<T1, T2, T3, T4, T5, T6, T7, T8, T9> TupleList for (T1, (T2, (T3, (T4, (T5, (T6, (T7, (T8, (T9, ())))))))))[src]

type Tuple = (T1, T2, T3, T4, T5, T6, T7, T8, T9)

pub const TUPLE_LIST_SIZE: usize[src]

pub fn into_tuple(
    self
) -> <(T1, (T2, (T3, (T4, (T5, (T6, (T7, (T8, (T9, ()))))))))) as TupleList>::Tuple
[src]

impl<T1, T2, T3, T4, T5> TupleList for (T1, (T2, (T3, (T4, (T5, ())))))[src]

type Tuple = (T1, T2, T3, T4, T5)

pub const TUPLE_LIST_SIZE: usize[src]

pub fn into_tuple(
    self
) -> <(T1, (T2, (T3, (T4, (T5, ()))))) as TupleList>::Tuple
[src]

impl<T1, T2> TupleList for (T1, (T2, ()))[src]

type Tuple = (T1, T2)

pub const TUPLE_LIST_SIZE: usize[src]

pub fn into_tuple(self) -> <(T1, (T2, ())) as TupleList>::Tuple[src]

impl<T1, T2, T3, T4, T5, T6, T7, T8> TupleList for (T1, (T2, (T3, (T4, (T5, (T6, (T7, (T8, ()))))))))[src]

type Tuple = (T1, T2, T3, T4, T5, T6, T7, T8)

pub const TUPLE_LIST_SIZE: usize[src]

pub fn into_tuple(
    self
) -> <(T1, (T2, (T3, (T4, (T5, (T6, (T7, (T8, ())))))))) as TupleList>::Tuple
[src]

Implementors