pub trait SetPos<const W: u16, const H: u16, const WORDS: usize, const SIZE: usize> {
// Required methods
fn contains(&self, pos: &Pos<W, H>) -> bool;
fn insert(&mut self, pos: &Pos<W, H>);
fn remove(&mut self, pos: &Pos<W, H>);
// Provided method
fn set(&mut self, pos: &Pos<W, H>, add: bool) { ... }
}
Expand description
Trait that abstracts sets of Pos
values