Skip to content

Instantly share code, notes, and snippets.

@treere
treere / lib.rs
Created May 31, 2019 19:55
Rust Meetup Milano 29/5/2019 - Lazy
fn selle(matrix: &impl MatrixTrait) -> Vec<(usize, usize)> {
matrix.selle().collect()
}
struct Selle<'a, M: MatrixTrait + ?Sized> {
m: &'a M,
rows: usize,
cols: usize,
r: usize,
c: usize,