1 2 3 4 5 6 7 8 9 10 11 12 13 14
use std::ops::Range; #[derive(Debug, PartialEq)] pub struct Row(Vec<Range<usize>>); impl Row { pub fn from(fields: Vec<Range<usize>>) -> Self { Self(fields) } pub fn fields(&self) -> &[Range<usize>] { &self.0 } }