[][src]Trait indented_blocks::view::ViewFn

pub trait ViewFn<S> {
    type Output: Sized;
    fn view(&self, node: S) -> Self::Output;
}

helper trait to create namable closures

Associated Types

Loading content...

Required methods

fn view(&self, node: S) -> Self::Output

Loading content...

Implementations on Foreign Types

impl<S, F: ViewFn<S>> ViewFn<S> for Rc<F>[src]

type Output = F::Output

impl<S, F: ViewFn<S>> ViewFn<S> for Arc<F>[src]

type Output = F::Output

Loading content...

Implementors

impl<S> ViewFn<S> for ()[src]

type Output = S

impl<S, F1, F2, O> ViewFn<S> for MapViewFn<F1, F2> where
    F1: ViewFn<S>,
    F2: Fn(F1::Output) -> O, 
[src]

type Output = O

impl<S, F, O> ViewFn<S> for F where
    F: Fn(S) -> O, 
[src]

type Output = O

Loading content...