Push zunrplorkwkt #70
@@ -224,7 +224,7 @@ impl KmerLayer {
|
||||
pub fn nonzero_iter<'a>(&'a self, slots: &'a [usize]) -> Box<dyn Iterator<Item = (usize, usize, u32)> + 'a> {
|
||||
match self {
|
||||
KmerLayer::Presence { layer, .. } => layer.nonzero_iter(slots),
|
||||
KmerLayer::Count { layer, .. } => Box::new(layer.nonzero_iter(slots)),
|
||||
KmerLayer::Count { layer, .. } => layer.nonzero_iter(slots),
|
||||
KmerLayer::Empty { .. } => panic!("Layer::nonzero_iter() called on an Empty layer"),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -418,7 +418,7 @@ impl TypedLayer<PersistentCompactIntMatrix> {
|
||||
|
||||
/// Every nonzero `(idx into slots, col, value)` triple among `slots` —
|
||||
/// delegates to `PersistentCompactIntMatrix::nonzero_iter`.
|
||||
pub fn nonzero_iter<'a>(&'a self, slots: &'a [usize]) -> impl Iterator<Item = (usize, usize, u32)> + 'a {
|
||||
pub fn nonzero_iter<'a>(&'a self, slots: &'a [usize]) -> Box<dyn Iterator<Item = (usize, usize, u32)> + 'a> {
|
||||
self.data.nonzero_iter(slots)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user