Trait Reader

Source
pub trait Reader<ES: Numeric>:
    CubeType
    + Send
    + Sync
    + 'static {
    // Required methods
    fn num_k_iterations<TC: TileConfig>(config: CommonStageConfig<TC>) -> u32;
    fn read_tile<TC: TileConfig>(
        this: &Self,
        row: u32,
        col: u32,
        config: CommonStageConfig<TC>,
    ) -> Tile<ES>;
    fn __expand_num_k_iterations<TC: TileConfig>(
        context: &mut Scope,
        config: CommonStageConfig<TC>,
    ) -> u32;
    fn __expand_read_tile<TC: TileConfig>(
        context: &mut Scope,
        this: <Self as CubeType>::ExpandType,
        row: <u32 as CubeType>::ExpandType,
        col: <u32 as CubeType>::ExpandType,
        config: CommonStageConfig<TC>,
    ) -> <Tile<ES> as CubeType>::ExpandType;
}

Required Methods§

Source

fn num_k_iterations<TC: TileConfig>(config: CommonStageConfig<TC>) -> u32

Source

fn read_tile<TC: TileConfig>( this: &Self, row: u32, col: u32, config: CommonStageConfig<TC>, ) -> Tile<ES>

Source

fn __expand_num_k_iterations<TC: TileConfig>( context: &mut Scope, config: CommonStageConfig<TC>, ) -> u32

Source

fn __expand_read_tile<TC: TileConfig>( context: &mut Scope, this: <Self as CubeType>::ExpandType, row: <u32 as CubeType>::ExpandType, col: <u32 as CubeType>::ExpandType, config: CommonStageConfig<TC>, ) -> <Tile<ES> as CubeType>::ExpandType

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<ES: Numeric, T: TilingLayout> Reader<ES> for BufferReader<ES, T>

Source§

impl<ES: Numeric, T: TilingLayout> Reader<ES> for FullReader<ES, T>