Files
brk/crates/brk_store/src/mode.rs
T
2025-12-10 17:36:12 +01:00

16 lines
250 B
Rust

#[derive(Debug, Clone, Copy)]
pub enum Mode {
Any,
PushOnly,
}
impl Mode {
pub fn is_any(&self) -> bool {
matches!(*self, Self::Any)
}
pub fn is_push_only(&self) -> bool {
matches!(*self, Self::PushOnly)
}
}