pub enum CheckHashPycsMode {
Always,
Never,
Default,
}
Expand description
Control the validation behavior of hash-based .pyc files.
See https://docs.python.org/3/c-api/init_config.html#c.PyConfig.check_hash_pycs_mode.
Serialization type: string
Variants§
Always
Hash the source file for invalidation regardless of value of the check_source
flag.
Serialized value: always
Never
Assume that hash-based pycs always are valid.
Serialized value: never
Default
The check_source
flag in hash-based pycs determines invalidation.
Serialized value: default
Trait Implementations§
Source§impl Clone for CheckHashPycsMode
impl Clone for CheckHashPycsMode
Source§fn clone(&self) -> CheckHashPycsMode
fn clone(&self) -> CheckHashPycsMode
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 CheckHashPycsMode
impl Debug for CheckHashPycsMode
Source§impl From<CheckHashPycsMode> for String
impl From<CheckHashPycsMode> for String
Source§fn from(v: CheckHashPycsMode) -> Self
fn from(v: CheckHashPycsMode) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CheckHashPycsMode
impl PartialEq for CheckHashPycsMode
Source§impl ToString for CheckHashPycsMode
impl ToString for CheckHashPycsMode
Source§impl TryFrom<&str> for CheckHashPycsMode
impl TryFrom<&str> for CheckHashPycsMode
Source§impl TryFrom<String> for CheckHashPycsMode
impl TryFrom<String> for CheckHashPycsMode
impl Copy for CheckHashPycsMode
impl Eq for CheckHashPycsMode
impl StructuralPartialEq for CheckHashPycsMode
Auto Trait Implementations§
impl Freeze for CheckHashPycsMode
impl RefUnwindSafe for CheckHashPycsMode
impl Send for CheckHashPycsMode
impl Sync for CheckHashPycsMode
impl Unpin for CheckHashPycsMode
impl UnwindSafe for CheckHashPycsMode
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