Enum rustc_parse_format::Flag [−][src]
pub enum Flag {
FlagSignPlus,
FlagSignMinus,
FlagAlternate,
FlagSignAwareZeroPad,
FlagDebugLowerHex,
FlagDebugUpperHex,
}Expand description
Various flags which can be applied to format strings. The meaning of these flags is defined by the formatters themselves.
Variants
Expand description
A + will be used to denote positive numbers.
Expand description
A - will be used to denote negative numbers. This is the default.
Expand description
An alternate form will be used for the value. In the case of numbers, this means that the number will be prefixed with the supplied string.
Expand description
For numbers, this means that the number will be padded with zeroes,
and the sign (+ or -) will precede them.
Expand description
For Debug / ?, format integers in lower-case hexadecimal.
Expand description
For Debug / ?, format integers in upper-case hexadecimal.
Trait Implementations
impl Copy for Flag[src]
impl StructuralPartialEq for Flag[src]
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
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more