Enum rustpython_ast::ConversionFlag
source · #[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 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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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