[][src]Trait funlib::FoldableA

pub trait FoldableA<'r, A: 'r>: HKST<'r, A> {
    fn fold<F>(&'r self, z: A, f: F) -> A
    where
        F: FnMut(A, &A) -> A
;
fn find<F>(&'r self, f: F) -> Option<&A>
    where
        F: Fn(&A) -> bool
;
fn all<F>(&'r self, f: F) -> bool
    where
        F: Fn(&A) -> bool
;
fn any<F>(&'r self, f: F) -> bool
    where
        F: Fn(&A) -> bool
;
fn filter<F>(&'r self, f: F) -> Self::M
    where
        F: Fn(&A) -> bool
;
fn is_empty(&'r self) -> bool; fn concat<B, F>(&'r self) -> A
    where
        A: Monoid
, { ... } }

Required methods

fn fold<F>(&'r self, z: A, f: F) -> A where
    F: FnMut(A, &A) -> A, 

fn find<F>(&'r self, f: F) -> Option<&A> where
    F: Fn(&A) -> bool

fn all<F>(&'r self, f: F) -> bool where
    F: Fn(&A) -> bool

fn any<F>(&'r self, f: F) -> bool where
    F: Fn(&A) -> bool

fn filter<F>(&'r self, f: F) -> Self::M where
    F: Fn(&A) -> bool

fn is_empty(&'r self) -> bool

Loading content...

Provided methods

fn concat<B, F>(&'r self) -> A where
    A: Monoid

Loading content...

Implementations on Foreign Types

impl<'r, A: 'r> FoldableA<'r, A> for Vec<A>[src]

Loading content...

Implementors

Loading content...