KsgPatternBoxed

Trait KsgPatternBoxed 

Source
pub trait KsgPatternBoxed {
    // Required methods
    fn size_boxed(&self) -> (usize, usize);
    fn cross_location(&self) -> (usize, usize);
    fn source_matrix(&self) -> Vec<Vec<PatternCell>>;
    fn mapped_matrix(&self) -> Vec<Vec<PatternCell>>;
    fn source_graph_boxed(&self) -> SourceGraph;
    fn pattern_matches_boxed(
        &self,
        grid: &MappingGrid,
        i: usize,
        j: usize,
    ) -> bool;
    fn apply_gadget_boxed(&self, grid: &mut MappingGrid, i: usize, j: usize);
    fn apply_weighted_gadget_boxed(
        &self,
        grid: &mut MappingGrid,
        i: usize,
        j: usize,
    );
}
Expand description

Trait for boxed pattern operations.

Required Methods§

Source

fn size_boxed(&self) -> (usize, usize)

Source

fn cross_location(&self) -> (usize, usize)

Source

fn source_matrix(&self) -> Vec<Vec<PatternCell>>

Source

fn mapped_matrix(&self) -> Vec<Vec<PatternCell>>

Source

fn source_graph_boxed(&self) -> SourceGraph

Source

fn pattern_matches_boxed(&self, grid: &MappingGrid, i: usize, j: usize) -> bool

Source

fn apply_gadget_boxed(&self, grid: &mut MappingGrid, i: usize, j: usize)

Source

fn apply_weighted_gadget_boxed( &self, grid: &mut MappingGrid, i: usize, j: usize, )

Implementors§

Source§

impl<P: Pattern> KsgPatternBoxed for P