blob: b8369f32dc6b79a6629adf221d1981d1535af708 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
use crate::matrix::{MatrixCell, ScoreCell};
use std::fmt::{Debug, Formatter, Result};
impl Debug for ScoreCell {
fn fmt(&self, f: &mut Formatter<'_>) -> Result {
write!(f, "({}, {})", self.score, self.matched)
}
}
impl Debug for MatrixCell {
fn fmt(&self, f: &mut Formatter<'_>) -> Result {
write!(f, "({}, {})", (self.0 & 1) != 0, (self.0 & 2) != 0)
}
}
|