Use more compact representation of Mark

This commit is contained in:
Michael Neumann 2015-11-29 16:24:36 +01:00
parent 883165b0d5
commit 98b367d434

View File

@ -1,6 +1,7 @@
use square_matrix::SquareMatrix;
#[derive(Clone, Copy, PartialEq, Eq, Debug)]
#[repr(u8)]
enum Mark {
None,
Star,
@ -12,9 +13,6 @@ pub struct MarkMatrix {
marks: SquareMatrix<Mark>,
}
// XXX: Use two bitmatrices. Each row has a fixed number of u64 integers. Use
// bit-search
impl MarkMatrix {
pub fn new(n: usize) -> MarkMatrix {
MarkMatrix {