1 2 3 4 5 6 7 8
fn filter_level(self, level: Level) -> Filter<Self, impl Fn(&Record) -> bool> where Self: Sized { Filter::new(self, |r| r.level().is_at_least(level)) }