Skip to main content

EpicExt

Trait EpicExt 

Source
pub trait EpicExt<A, S, C>: Epic<A, S, C> {
    // Provided methods
    fn join<E>(self, other: E) -> JoinEpic<Self, E>
       where Self: Sized,
             A: Send + 'static { ... }
    fn switch(self) -> SwitchEpic<Self>
       where Self: Sized + Send + 'static { ... }
    fn boxed(self) -> BoxEpic<'static, A, S, C>
       where Self: Sized + Send + 'static { ... }
}

Provided Methods§

Source

fn join<E>(self, other: E) -> JoinEpic<Self, E>
where Self: Sized, A: Send + 'static,

Join two Epics.

§Notes

This will join on the stack. If you want to join dozens of epics the heap should be used. See: MergeEpic.

Source

fn switch(self) -> SwitchEpic<Self>
where Self: Sized + Send + 'static,

Source

fn boxed(self) -> BoxEpic<'static, A, S, C>
where Self: Sized + Send + 'static,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T, A, S, C> EpicExt<A, S, C> for T
where T: Epic<A, S, C> + ?Sized + Send + 'static,