[][src]Struct indented_blocks::Block

pub struct Block<S> {
    pub head: S,
    pub subs: Vec<Block<S>>,
}

Fields

head: Ssubs: Vec<Block<S>>

Implementations

impl<A> Block<A>[src]

pub fn map_ref<B, F>(&self, f: F) -> Block<B> where
    F: FnMut(&A) -> B, 
[src]

pub fn map<B, F>(self, f: F) -> Block<B> where
    F: FnMut(A) -> B, 
[src]

impl<'a, T: ToOwned> Block<&'a T>[src]

pub fn to_owned(&self) -> Block<T::Owned>[src]

Trait Implementations

impl<'ast, T: 'ast> AsUnindented<'ast> for Block<T> where
    T: AsUnindented<'ast> + 'ast, 
[src]

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

impl<S: Clone> Clone for Block<S>[src]

impl<S: Debug> Debug for Block<S>[src]

Auto Trait Implementations

impl<S> Send for Block<S> where
    S: Send

impl<S> Sync for Block<S> where
    S: Sync

impl<S> Unpin for Block<S> where
    S: 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.