pub enum PythonImportKind {
Absolute,
Relative,
FromImport,
StarImport,
}Expand description
Python import statement kind metadata.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for PythonImportKind
impl Clone for PythonImportKind
Source§fn clone(&self) -> PythonImportKind
fn clone(&self) -> PythonImportKind
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 PythonImportKind
impl Debug for PythonImportKind
Source§impl Display for PythonImportKind
impl Display for PythonImportKind
Source§impl FromStr for PythonImportKind
impl FromStr for PythonImportKind
Source§type Err = PythonModuleNameError
type Err = PythonModuleNameError
The associated error which can be returned from parsing.
Source§fn from_str(
input: &str,
) -> Result<PythonImportKind, <PythonImportKind as FromStr>::Err>
fn from_str( input: &str, ) -> Result<PythonImportKind, <PythonImportKind as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for PythonImportKind
impl Hash for PythonImportKind
Source§impl Ord for PythonImportKind
impl Ord for PythonImportKind
Source§fn cmp(&self, other: &PythonImportKind) -> Ordering
fn cmp(&self, other: &PythonImportKind) -> 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 PythonImportKind
impl PartialEq for PythonImportKind
Source§fn eq(&self, other: &PythonImportKind) -> bool
fn eq(&self, other: &PythonImportKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PythonImportKind
impl PartialOrd for PythonImportKind
impl Copy for PythonImportKind
impl Eq for PythonImportKind
impl StructuralPartialEq for PythonImportKind
Auto Trait Implementations§
impl Freeze for PythonImportKind
impl RefUnwindSafe for PythonImportKind
impl Send for PythonImportKind
impl Sync for PythonImportKind
impl Unpin for PythonImportKind
impl UnsafeUnpin for PythonImportKind
impl UnwindSafe for PythonImportKind
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