pub enum ModuleRef {
Named(String),
Default,
}Variants§
Named(String)
Default
Default module that PyO3 creates.
- For pure Rust project, the default module name is the crate name specified in
Cargo.tomlorproject.namespecified inpyproject.toml - For mixed Rust/Python project, the default module name is
tool.maturin.module-namespecified inpyproject.toml
Because the default module name cannot be known at compile time, it will be resolved at the time of the stub file generation. This is a placeholder for the default module name.
Implementations§
Trait Implementations§
Source§impl Ord for ModuleRef
impl Ord for ModuleRef
Source§impl PartialOrd for ModuleRef
impl PartialOrd for ModuleRef
impl Eq for ModuleRef
impl StructuralPartialEq for ModuleRef
Auto Trait Implementations§
impl Freeze for ModuleRef
impl RefUnwindSafe for ModuleRef
impl Send for ModuleRef
impl Sync for ModuleRef
impl Unpin for ModuleRef
impl UnwindSafe for ModuleRef
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,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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