Files
brk/crates/brk_store/src/kind.rs
T
2026-03-31 22:53:25 +02:00

21 lines
338 B
Rust

#[derive(Debug, Clone, Copy)]
pub enum Kind {
Recent,
Random,
Vec,
}
impl Kind {
pub fn is_recent(&self) -> bool {
matches!(*self, Self::Recent)
}
pub fn is_random(&self) -> bool {
matches!(*self, Self::Random)
}
pub fn is_vec(&self) -> bool {
matches!(*self, Self::Vec)
}
}