brk_core 0.0.83

The Core (Structs and Errors) of the Bitcoin Research Kit
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
#[derive(Debug, Default)]
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();
    }
}