#[repr(i8)]pub enum ConversionFlag {
None = -1,
Str = 115,
Ascii = 97,
Repr = 114,
}
Expand description
Transforms a value prior to formatting it.
Variants§
None = -1
No conversion
Str = 115
Converts by calling str(<value>)
.
Ascii = 97
Converts by calling ascii(<value>)
.
Repr = 114
Converts by calling repr(<value>)
.
Implementations§
Trait Implementations§
Source§impl Clone for ConversionFlag
impl Clone for ConversionFlag
Source§fn clone(&self) -> ConversionFlag
fn clone(&self) -> ConversionFlag
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ConversionFlag
impl Debug for ConversionFlag
Source§impl<T, U> Foldable<T, U> for ConversionFlag
impl<T, U> Foldable<T, U> for ConversionFlag
Source§impl Hash for ConversionFlag
impl Hash for ConversionFlag
Source§impl OpArgType for ConversionFlag
impl OpArgType for ConversionFlag
fn from_op_arg(x: u32) -> Option<ConversionFlag>
fn to_op_arg(self) -> u32
Source§impl PartialEq for ConversionFlag
impl PartialEq for ConversionFlag
impl Copy for ConversionFlag
impl Eq for ConversionFlag
impl StructuralPartialEq for ConversionFlag
Auto Trait Implementations§
impl Freeze for ConversionFlag
impl RefUnwindSafe for ConversionFlag
impl Send for ConversionFlag
impl Sync for ConversionFlag
impl Unpin for ConversionFlag
impl UnwindSafe for ConversionFlag
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more