mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-05-25 17:24:47 -07:00
15 lines
269 B
Rust
15 lines
269 B
Rust
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();
|
|
}
|
|
}
|