pub enum PythonFileKind {
Module,
PackageInit,
Script,
Test,
Stub,
Config,
}Expand description
Python file-kind metadata.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for PythonFileKind
impl Clone for PythonFileKind
Source§fn clone(&self) -> PythonFileKind
fn clone(&self) -> PythonFileKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PythonFileKind
impl Debug for PythonFileKind
Source§impl Display for PythonFileKind
impl Display for PythonFileKind
Source§impl FromStr for PythonFileKind
impl FromStr for PythonFileKind
Source§type Err = PythonModuleNameError
type Err = PythonModuleNameError
The associated error which can be returned from parsing.
Source§fn from_str(
input: &str,
) -> Result<PythonFileKind, <PythonFileKind as FromStr>::Err>
fn from_str( input: &str, ) -> Result<PythonFileKind, <PythonFileKind as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for PythonFileKind
impl Hash for PythonFileKind
Source§impl Ord for PythonFileKind
impl Ord for PythonFileKind
Source§fn cmp(&self, other: &PythonFileKind) -> Ordering
fn cmp(&self, other: &PythonFileKind) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PythonFileKind
impl PartialEq for PythonFileKind
Source§fn eq(&self, other: &PythonFileKind) -> bool
fn eq(&self, other: &PythonFileKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PythonFileKind
impl PartialOrd for PythonFileKind
impl Copy for PythonFileKind
impl Eq for PythonFileKind
impl StructuralPartialEq for PythonFileKind
Auto Trait Implementations§
impl Freeze for PythonFileKind
impl RefUnwindSafe for PythonFileKind
impl Send for PythonFileKind
impl Sync for PythonFileKind
impl Unpin for PythonFileKind
impl UnsafeUnpin for PythonFileKind
impl UnwindSafe for PythonFileKind
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