#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)]
pub enum BranchState {
Expanded,
#[default]
Collapsed,
}
impl BranchState {
pub fn is_expanded(&self) -> bool {
matches!(self, Self::Expanded)
}
pub fn is_collapsed(&self) -> bool {
matches!(self, Self::Collapsed)
}
}