#[repr(u8)]
pub enum ConversionFlag {
None,
Str,
Ascii,
Repr,
}
Expand description
Transforms a value prior to formatting it.
Variants§
None
No conversion
Str
Converts by calling str(<value>)
.
Ascii
Converts by calling ascii(<value>)
.
Repr
Converts by calling repr(<value>)
.
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<'de> Deserialize<'de> for ConversionFlag
impl<'de> Deserialize<'de> for ConversionFlag
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<ConversionFlag> for ConversionFlag
impl PartialEq<ConversionFlag> for ConversionFlag
source§fn eq(&self, other: &ConversionFlag) -> bool
fn eq(&self, other: &ConversionFlag) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.