mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-04-24 06:39:58 -07:00
19 lines
360 B
Rust
19 lines
360 B
Rust
use serde_derive::{Deserialize, Serialize};
|
|
|
|
#[derive(Default, Debug, PartialEq, PartialOrd, Ord, Eq, Clone, Copy, Serialize, Deserialize)]
|
|
pub enum Computation {
|
|
Eager,
|
|
#[default]
|
|
Lazy,
|
|
}
|
|
|
|
impl Computation {
|
|
pub fn eager(&self) -> bool {
|
|
*self == Self::Eager
|
|
}
|
|
|
|
pub fn lazy(&self) -> bool {
|
|
*self == Self::Lazy
|
|
}
|
|
}
|