#[non_exhaustive]pub enum SignDisplay {
Auto,
Always,
ExceptZero,
Negative,
Never,
}Expand description
signDisplay.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Auto
auto (the default): a minus sign for negative numbers, -0 included.
Always
always.
ExceptZero
exceptZero: a sign for nonzero numbers only.
Negative
negative: a minus sign for negative numbers, not -0.
Never
never.
Trait Implementations§
Source§impl Clone for SignDisplay
impl Clone for SignDisplay
impl Copy for SignDisplay
Source§impl Debug for SignDisplay
impl Debug for SignDisplay
impl Eq for SignDisplay
Source§impl Hash for SignDisplay
impl Hash for SignDisplay
Source§impl PartialEq for SignDisplay
impl PartialEq for SignDisplay
impl StructuralPartialEq for SignDisplay
Auto Trait Implementations§
impl Freeze for SignDisplay
impl RefUnwindSafe for SignDisplay
impl Send for SignDisplay
impl Sync for SignDisplay
impl Unpin for SignDisplay
impl UnsafeUnpin for SignDisplay
impl UnwindSafe for SignDisplay
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more