[][src]Trait termcandy::FutureExt

pub trait FutureExt: Future {
    fn draw_as<D>(self, drawer: D) -> DrawAs<Self, D>
    where
        Self: Sized,
        D: for<'s, 'm> Fn(&'m mut SurfaceMut<'s>)
, { ... } }

Extension trait for futures.

Provided methods

fn draw_as<D>(self, drawer: D) -> DrawAs<Self, D> where
    Self: Sized,
    D: for<'s, 'm> Fn(&'m mut SurfaceMut<'s>), 

Convert any future to a widget by giving it a draw method.

Loading content...

Implementors

impl<F> FutureExt for F where
    F: Future
[src]

fn draw_as<D>(self, drawer: D) -> DrawAs<Self, D> where
    Self: Sized,
    D: for<'s, 'm> Fn(&'m mut SurfaceMut<'s>), 
[src]

Loading content...