Files
brk/crates/brk_vecs/src/variants/computed/computation.rs
2025-08-03 23:38:58 +02:00

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
}
}