1 2 3 4 5 6 7 8 9 10 11 12 13 14
#[derive(Clone, Debug)] pub struct CountLinesOpts { pub with_chars: bool, pub remove_trailing_blank_line: bool, } impl CountLinesOpts { pub fn empty() -> CountLinesOpts { CountLinesOpts { with_chars: false, remove_trailing_blank_line: false, } } }