1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
use crate::block::BlockLogic; pub struct SimpleBlock { size: u8, symmetric: bool, } impl SimpleBlock { pub const fn new(size: u8, symmetric: bool) -> Self { Self{size, symmetric} } } impl BlockLogic for SimpleBlock { fn get_size(&self) -> u8 { self.size } fn is_symmetric(&self) -> bool { self.symmetric } }