#[non_exhaustive]#[repr(u32)]pub enum Flag {
SignPlus = 0,
SignMinus = 1,
Alternate = 2,
SignAwareZeroPad = 3,
}
Expand description
A single flag for format spec.
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.
SignPlus = 0
Plus sign +
.
SignMinus = 1
Minus sign -
.
Alternate = 2
Alternate specifier #
.
SignAwareZeroPad = 3
Sign-aware zero pad 0
.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Flag
impl Send for Flag
impl Sync for Flag
impl Unpin for Flag
impl UnwindSafe for Flag
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