From 98b367d434ce290a7943434248ea2fcb5cbe9a87 Mon Sep 17 00:00:00 2001 From: Michael Neumann Date: Sun, 29 Nov 2015 16:24:36 +0100 Subject: [PATCH] Use more compact representation of Mark --- src/mark_matrix.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/mark_matrix.rs b/src/mark_matrix.rs index eeb6e95..6e372e8 100644 --- a/src/mark_matrix.rs +++ b/src/mark_matrix.rs @@ -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, } -// 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 {