[−][src]Struct python_packaging::resource::PythonExtensionModuleVariants
Represents a collection of variants for a given Python extension module.
Implementations
impl PythonExtensionModuleVariants
[src]
pub fn push(&mut self, em: PythonExtensionModule)
[src]
pub fn is_empty(&self) -> bool
[src]
pub fn iter(&self) -> impl Iterator<Item = &PythonExtensionModule>
[src]
pub fn default_variant(&self) -> &PythonExtensionModule
[src]
Obtains the default / first variant of an extension module.
pub fn choose_variant<S: BuildHasher>(
&self,
variants: &HashMap<String, String, S>
) -> &PythonExtensionModule
[src]
&self,
variants: &HashMap<String, String, S>
) -> &PythonExtensionModule
Choose a variant given preferences.
Trait Implementations
impl Clone for PythonExtensionModuleVariants
[src]
fn clone(&self) -> PythonExtensionModuleVariants
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for PythonExtensionModuleVariants
[src]
impl Default for PythonExtensionModuleVariants
[src]
impl FromIterator<PythonExtensionModule> for PythonExtensionModuleVariants
[src]
fn from_iter<I: IntoIterator<Item = PythonExtensionModule>>(iter: I) -> Self
[src]
Auto Trait Implementations
impl RefUnwindSafe for PythonExtensionModuleVariants
impl Send for PythonExtensionModuleVariants
impl Sync for PythonExtensionModuleVariants
impl Unpin for PythonExtensionModuleVariants
impl UnwindSafe for PythonExtensionModuleVariants
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,