ferritin 0.1.0

Human-friendly CLI for browsing Rust documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use clap::ValueEnum;

/// Controls the verbosity level of documentation display
#[derive(Debug, Clone, Copy, PartialEq, Eq, ValueEnum, Default)]
pub(crate) enum Verbosity {
    Minimal,
    Brief,
    #[default]
    Full,
}

impl Verbosity {
    pub(crate) fn is_full(self) -> bool {
        matches!(self, Self::Full)
    }
}