Enum python_packaging::interpreter::BytesWarning
source · [−]pub enum BytesWarning {
None,
Warn,
Raise,
}
Expand description
Defines what to do when comparing bytes with str.
See https://docs.python.org/3/c-api/init_config.html#c.PyConfig.bytes_warning.
Variants
None
Warn
Raise
Trait Implementations
sourceimpl Clone for BytesWarning
impl Clone for BytesWarning
sourcefn clone(&self) -> BytesWarning
fn clone(&self) -> BytesWarning
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for BytesWarning
impl Debug for BytesWarning
sourceimpl From<BytesWarning> for String
impl From<BytesWarning> for String
sourcefn from(v: BytesWarning) -> Self
fn from(v: BytesWarning) -> Self
Performs the conversion.
sourceimpl From<i32> for BytesWarning
impl From<i32> for BytesWarning
sourcefn from(value: i32) -> BytesWarning
fn from(value: i32) -> BytesWarning
Performs the conversion.
sourceimpl PartialEq<BytesWarning> for BytesWarning
impl PartialEq<BytesWarning> for BytesWarning
sourceimpl ToString for BytesWarning
impl ToString for BytesWarning
sourceimpl TryFrom<&'_ str> for BytesWarning
impl TryFrom<&'_ str> for BytesWarning
sourceimpl TryFrom<String> for BytesWarning
impl TryFrom<String> for BytesWarning
impl Copy for BytesWarning
impl StructuralPartialEq for BytesWarning
Auto Trait Implementations
impl RefUnwindSafe for BytesWarning
impl Send for BytesWarning
impl Sync for BytesWarning
impl Unpin for BytesWarning
impl UnwindSafe for BytesWarning
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more