num_runtime_fmt/
sign.rs

1/// Whether to render a sign sigil.
2///
3/// - `OnlyMinus`: print a leading `-` for negative numbers, and nothing in particular for
4///   positive (default)
5/// - `PlusAndMinus`: print a leading `+` for positive numbers
6#[derive(Clone, Copy, PartialEq, Eq, Debug)]
7pub enum Sign {
8    PlusAndMinus,
9    OnlyMinus,
10}
11
12impl Default for Sign {
13    #[inline]
14    fn default() -> Self {
15        Self::OnlyMinus
16    }
17}