[][src]Struct indented_blocks::view::View

pub struct View<'ast, S, F> { /* fields omitted */ }

Implementations

impl<'ast, S, F> View<'ast, S, F>[src]

pub const fn new(parent: &'ast Block<S>, mapping: F) -> Self[src]

impl<'ast, S: 'ast, F> View<'ast, S, F> where
    F: ViewFn<&'ast S>, 
[src]

pub fn head(&self) -> F::Output[src]

pub fn map<F2, O2>(self, f2: F2) -> View<'ast, S, MapViewFn<F, F2>> where
    F2: Fn(F::Output) -> O2, 
[src]

impl<'ast, S: 'ast, F> View<'ast, S, F> where
    F: Clone + ViewFn<&'ast S>, 
[src]

pub fn subs(
    &self
) -> Map<Iter<'ast, Block<S>>, impl Fn(&'ast Block<S>) -> View<'ast, S, F>>
[src]

Trait Implementations

impl<S, F: Clone, '_> Clone for View<'_, S, F>[src]

impl<S, F: Copy, '_> Copy for View<'_, S, F>[src]

impl<'ast, S: Debug, F: Debug> Debug for View<'ast, S, F>[src]

impl<'ast, T, F, O> IntoUnindented for View<'ast, T, F> where
    T: 'ast,
    F: ViewFn<&'ast T, Output = O>,
    O: IntoUnindented + 'ast, 
[src]

type Output = View<'ast, T, MapViewFn<F, fn(_: F::Output) -> O::Output>>

Auto Trait Implementations

impl<'ast, S, F> Send for View<'ast, S, F> where
    F: Send,
    S: Sync

impl<'ast, S, F> Sync for View<'ast, S, F> where
    F: Sync,
    S: Sync

impl<'ast, S, F> Unpin for View<'ast, S, F> where
    F: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.