Enum pyo3::inspect::types::ModuleName
source · pub enum ModuleName {
Builtin,
CurrentModule,
Module(Cow<'static, str>),
}
Available on crate feature
experimental-inspect
only.Expand description
Declares which module a type is a part of.
Variants§
Builtin
The type is built-in: it doesn’t need to be imported.
CurrentModule
The type is in the current module: it doesn’t need to be imported in this module, but needs to be imported in others.
Module(Cow<'static, str>)
The type is in the specified module.
Trait Implementations§
source§impl Clone for ModuleName
impl Clone for ModuleName
source§fn clone(&self) -> ModuleName
fn clone(&self) -> ModuleName
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 ModuleName
impl Debug for ModuleName
source§impl PartialEq<ModuleName> for ModuleName
impl PartialEq<ModuleName> for ModuleName
source§fn eq(&self, other: &ModuleName) -> bool
fn eq(&self, other: &ModuleName) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ModuleName
impl StructuralEq for ModuleName
impl StructuralPartialEq for ModuleName
Auto Trait Implementations§
impl RefUnwindSafe for ModuleName
impl Send for ModuleName
impl Sync for ModuleName
impl Unpin for ModuleName
impl UnwindSafe for ModuleName
Blanket Implementations§
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.