Skip to main content
RKTK API Docs RKTK Home Repo

KeyProfileMap

Trait KeyProfileMap 

Source
pub trait KeyProfileMap<const ROWS: usize, const COLS: usize> {
    type Profile: SwitchProfile;

    // Required method
    fn get_profile(&self, row: usize, col: usize) -> &Self::Profile;
}

Required Associated Types§

Required Methods§

Source

fn get_profile(&self, row: usize, col: usize) -> &Self::Profile

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<P: SwitchProfile, const ROWS: usize, const COLS: usize> KeyProfileMap<ROWS, COLS> for MatrixProfileMap<P, ROWS, COLS>

Source§

impl<P: SwitchProfile, const ROWS: usize, const COLS: usize> KeyProfileMap<ROWS, COLS> for SingleProfileMap<P>