brk_cohort 0.1.1

Cohort definitions used throughout BRK
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use super::Filter;

pub trait Filtered {
    fn filter(&self) -> &Filter;

    fn is_all(&self) -> bool {
        self.filter().is_all()
    }

    fn includes_first_day(&self) -> bool {
        self.filter().includes_first_day()
    }
}