vecs: part 11

This commit is contained in:
nym21
2025-07-25 20:27:15 +02:00
parent dfc286b393
commit 56750ccf3c
7 changed files with 2425 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
use clap_derive::ValueEnum;
use serde::{Deserialize, Serialize};
#[derive(
Default, Debug, PartialEq, PartialOrd, Ord, Eq, Clone, Copy, Serialize, Deserialize, ValueEnum,
)]
pub enum Computation {
Eager,
#[default]
Lazy,
}
impl Computation {
pub fn eager(&self) -> bool {
*self == Self::Eager
}
pub fn lazy(&self) -> bool {
*self == Self::Lazy
}
}