Skip to main content

Destination

Trait Destination 

Source
pub trait Destination:
    Send
    + Sync
    + 'static {
    type Arg<E: Numeric>: LaunchArg + CubeType;

    // Required methods
    fn tile<E: Numeric, V: Size>(
        arg: &Self::Arg<E>,
        partitioning: &Partitioning,
    ) -> Tile;
    fn __expand_tile<E: Numeric, V: Size>(
        scope: &Scope,
        arg: &<Self::Arg<E> as CubeType>::ExpandType,
        partitioning: &<Partitioning as CubeType>::ExpandType,
    ) -> <Tile as CubeType>::ExpandType;
}
Expand description

Which launch argument carries a kernel’s output and how the kernel serves it as a Tile.

Required Associated Types§

Source

type Arg<E: Numeric>: LaunchArg + CubeType

The launch argument carrying the output and its spec, at element E.

Required Methods§

Source

fn tile<E: Numeric, V: Size>( arg: &Self::Arg<E>, partitioning: &Partitioning, ) -> Tile

Serve the argument as a Tile under the kernel’s one partitioning, stored in lines of V where the argument does not state its own width.

Source

fn __expand_tile<E: Numeric, V: Size>( scope: &Scope, arg: &<Self::Arg<E> as CubeType>::ExpandType, partitioning: &<Partitioning as CubeType>::ExpandType, ) -> <Tile as CubeType>::ExpandType

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§