Skip to main content

SinkLaunch

Trait SinkLaunch 

Source
pub trait SinkLaunch {
    // Required methods
    fn width(&self) -> usize;
    fn elements(&self) -> usize;
    fn launch<O: DestinationLaunch>(
        self,
        sink: impl FnOnce(Unbound) -> O::Operand,
    );
}
Expand description

A kernel prepared to store through a Destination the caller builds afterwards, at width: the caller binds the output only once it knows the kernel’s spec.

Required Methods§

Source

fn width(&self) -> usize

The width the kernel hands the destination its lines in.

Source

fn elements(&self) -> usize

The dense output’s element count, which a destination standing for it must cover exactly.

Source

fn launch<O: DestinationLaunch>(self, sink: impl FnOnce(Unbound) -> O::Operand)

Launch through the destination O, sink building the output’s argument from its derived spec and geometry.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§