pub type DynComputable<T> = Box<dyn Computable<T>>;Expand description
A type alias for Box<dyn Computable<T>>.
Aliased Type§
pub struct DynComputable<T>(/* private fields */);Trait Implementations§
Source§impl<T> Computable<T> for DynComputable<T>
impl<T> Computable<T> for DynComputable<T>
Source§fn try_compute(&mut self) -> Completable<T>
fn try_compute(&mut self) -> Completable<T>
Try to advance this computation, returning a value once the computation is done.
Source§fn compute_completable(&mut self) -> Completable<T>
fn compute_completable(&mut self) -> Completable<T>
Advance this computation until it either completes, is canceled, or becomes exhausted,
skipping over all suspended states. Read more
Source§fn compute(&mut self) -> Cancellable<T>
fn compute(&mut self) -> Cancellable<T>
Advance this computation until completion, skipping over all suspended states. Read more
Source§fn dyn_computable(self) -> DynComputable<T>where
Self: Sized + 'static,
fn dyn_computable(self) -> DynComputable<T>where
Self: Sized + 'static,
Utility method to convert this
Computable to a dynamic type.