Skip to main content

ModuleExt

Trait ModuleExt 

Source
pub trait ModuleExt<T: Scalar, B: ComputeBackend + Default>: Module<T, B> {
    // Required method
    fn append<M: Module<T, B>>(self, next: M) -> StaticSeq<Self, M>
       where Self: Sized;
}
Expand description

Extension trait for all Modules, enabling fluent construction of StaticSeq chains.

Required Methods§

Source

fn append<M: Module<T, B>>(self, next: M) -> StaticSeq<Self, M>
where Self: Sized,

Append another module to the end of the sequence.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T: Scalar, B: ComputeBackend + Default, M: Module<T, B>> ModuleExt<T, B> for M