Implement basic structure for note evaluation
This commit is contained in:
parent
8034ec19cd
commit
0bb01369b8
2 changed files with 69 additions and 15 deletions
|
|
@ -78,6 +78,14 @@ impl EntryMap {
|
|||
self.range
|
||||
}
|
||||
|
||||
pub fn set_from(&mut self, from: NaiveDate) {
|
||||
self.range = DateRange::new(from, self.range.until());
|
||||
}
|
||||
|
||||
pub fn set_until(&mut self, until: NaiveDate) {
|
||||
self.range = DateRange::new(self.range.from(), until);
|
||||
}
|
||||
|
||||
pub fn block(&mut self, date: NaiveDate) {
|
||||
if self.range.contains(date) {
|
||||
self.map.entry(date).or_insert(None);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue