1 2 3 4 5 6 7 8 9 10 11 12 13 14
pub struct Config { pub with_count: bool, } impl Config { pub fn new(with_count: bool) -> Self { Config { with_count } } pub fn is_valid(&self) -> bool { // TODO true } }
1 2 3 4 5 6 7 8 9 10 11 12 13 14
pub struct Config { pub with_count: bool, } impl Config { pub fn new(with_count: bool) -> Self { Config { with_count } } pub fn is_valid(&self) -> bool { // TODO true } }