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