pub enum ComponentFlavor {
PythonDistribution(String),
PythonStandardLibraryModule(String),
PythonStandardLibraryExtensionModule(String),
PythonExtensionModule(String),
PythonModule(String),
Library(String),
RustCrate(String),
}
Expand description
Describes the type of a software component.
Variants§
PythonDistribution(String)
A Python distribution.
PythonStandardLibraryModule(String)
A Python module in the standard library.
PythonStandardLibraryExtensionModule(String)
A compiled Python extension module in the standard library.
PythonExtensionModule(String)
A compiled Python extension module.
PythonModule(String)
A Python module.
Library(String)
A generic software library.
RustCrate(String)
A Rust crate.
Implementations§
Source§impl ComponentFlavor
impl ComponentFlavor
Sourcepub fn is_python_standard_library(&self) -> bool
pub fn is_python_standard_library(&self) -> bool
Whether this component is part of the Python standard library.
pub fn python_module_name(&self) -> Option<&str>
Sourcepub fn is_python_distribution_component(&self) -> bool
pub fn is_python_distribution_component(&self) -> bool
Whether the component is part of a Python distribution.
Trait Implementations§
Source§impl Clone for ComponentFlavor
impl Clone for ComponentFlavor
Source§fn clone(&self) -> ComponentFlavor
fn clone(&self) -> ComponentFlavor
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 ComponentFlavor
impl Debug for ComponentFlavor
Source§impl Display for ComponentFlavor
impl Display for ComponentFlavor
Source§impl Ord for ComponentFlavor
impl Ord for ComponentFlavor
Source§impl PartialEq for ComponentFlavor
impl PartialEq for ComponentFlavor
Source§impl PartialOrd for ComponentFlavor
impl PartialOrd for ComponentFlavor
impl Eq for ComponentFlavor
Auto Trait Implementations§
impl Freeze for ComponentFlavor
impl RefUnwindSafe for ComponentFlavor
impl Send for ComponentFlavor
impl Sync for ComponentFlavor
impl Unpin for ComponentFlavor
impl UnwindSafe for ComponentFlavor
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