pub enum CoerceCLocale {
LCCtype = 1,
C = 2,
}
Expand description
Holds values for coerce_c_locale
.
See https://docs.python.org/3/c-api/init_config.html#c.PyPreConfig.coerce_c_locale.
Serialization type: string
Variants§
LCCtype = 1
Read the LC_CTYPE locale to decide if it should be coerced.
Serialized value: LC_CTYPE
C = 2
Coerce the C locale.
Serialized value: C
Trait Implementations§
Source§impl Clone for CoerceCLocale
impl Clone for CoerceCLocale
Source§fn clone(&self) -> CoerceCLocale
fn clone(&self) -> CoerceCLocale
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CoerceCLocale
impl Debug for CoerceCLocale
Source§impl From<CoerceCLocale> for String
impl From<CoerceCLocale> for String
Source§fn from(v: CoerceCLocale) -> Self
fn from(v: CoerceCLocale) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CoerceCLocale
impl PartialEq for CoerceCLocale
Source§impl ToString for CoerceCLocale
impl ToString for CoerceCLocale
Source§impl TryFrom<&str> for CoerceCLocale
impl TryFrom<&str> for CoerceCLocale
Source§impl TryFrom<String> for CoerceCLocale
impl TryFrom<String> for CoerceCLocale
impl Copy for CoerceCLocale
impl Eq for CoerceCLocale
impl StructuralPartialEq for CoerceCLocale
Auto Trait Implementations§
impl Freeze for CoerceCLocale
impl RefUnwindSafe for CoerceCLocale
impl Send for CoerceCLocale
impl Sync for CoerceCLocale
impl Unpin for CoerceCLocale
impl UnwindSafe for CoerceCLocale
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<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