Use more compact representation of Mark
This commit is contained in:
parent
883165b0d5
commit
98b367d434
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user