brk_grouper 0.1.0-alpha.1

Groups used throughout BRK
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use brk_traversable::Traversable;

#[derive(Debug, Default, Traversable)]
pub struct ByAnyAddress<T> {
    pub loaded: T,
    pub empty: T,
}

impl<T> ByAnyAddress<Option<T>> {
    pub fn take(&mut self) {
        self.loaded.take();
        self.empty.take();
    }
}