[][src]Trait bogobble::tuple::Firster

pub trait Firster {
    type Item;
    pub fn get_first(self) -> Self::Item;
}

Associated Types

Loading content...

Required methods

pub fn get_first(self) -> Self::Item[src]

use bogobble::*;
let p = ("abc".plus(),"def".plus()).first().parse_s("aced").unwrap();
assert_eq!(p,"ac");
let p = ("abc".plus(),"def".plus()).last().parse_s("aced").unwrap();
assert_eq!(p,"ed");
Loading content...

Implementations on Foreign Types

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

type Item = A

impl<A, B, C> Firster for (A, B, C)[src]

type Item = A

impl<A, B, C, D> Firster for (A, B, C, D)[src]

type Item = A

impl<A, B, C, D, E> Firster for (A, B, C, D, E)[src]

type Item = A

impl<A, B, C, D, E, F> Firster for (A, B, C, D, E, F)[src]

type Item = A

Loading content...

Implementors

Loading content...