pub trait StageToTileReader<ES: Numeric>:
CubeType
+ Send
+ Sync
+ 'static {
// Required methods
fn read_tile<S: StageConfig>(
this: &Self,
row: u32,
col: u32,
config: S,
) -> Tile<ES>;
fn __expand_read_tile<S: StageConfig>(
scope: &mut Scope,
this: <Self as CubeType>::ExpandType,
row: <u32 as CubeType>::ExpandType,
col: <u32 as CubeType>::ExpandType,
config: S,
) -> <Tile<ES> as CubeType>::ExpandType;
}
Expand description
Read the tile at (row, col) from stage memory
Required Methods§
fn read_tile<S: StageConfig>( this: &Self, row: u32, col: u32, config: S, ) -> Tile<ES>
fn __expand_read_tile<S: StageConfig>( scope: &mut Scope, this: <Self as CubeType>::ExpandType, row: <u32 as CubeType>::ExpandType, col: <u32 as CubeType>::ExpandType, config: S, ) -> <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.