use crate::types::state::MatchState;
#[derive(Clone, Debug)]
pub struct DirListDisplayOptions {
pub filter_state: MatchState,
pub depth: u8,
}
impl DirListDisplayOptions {
pub fn set_filter_state(&mut self, filter_state: MatchState) {
self.filter_state = filter_state;
}
pub fn filter_state_ref(&self) -> &MatchState {
&self.filter_state
}
pub fn set_depth(&mut self, depth: u8) {
self.depth = depth;
}
pub fn depth(&self) -> u8 {
self.depth
}
}
impl std::default::Default for DirListDisplayOptions {
fn default() -> Self {
Self {
filter_state: MatchState::None,
depth: 0,
}
}
}