Struct pyo3_stub_gen::generate::Module
source · pub struct Module {
pub class: BTreeMap<TypeId, ClassDef>,
pub enum_: BTreeMap<TypeId, EnumDef>,
pub function: BTreeMap<&'static str, FunctionDef>,
pub error: BTreeMap<&'static str, ErrorDef>,
pub variables: BTreeMap<&'static str, VariableDef>,
pub name: String,
pub default_module_name: String,
pub submodules: BTreeSet<String>,
}
Expand description
Type info for a Python (sub-)module. This corresponds to a single *.pyi
file.
Fields§
§class: BTreeMap<TypeId, ClassDef>
§enum_: BTreeMap<TypeId, EnumDef>
§function: BTreeMap<&'static str, FunctionDef>
§error: BTreeMap<&'static str, ErrorDef>
§variables: BTreeMap<&'static str, VariableDef>
§name: String
§default_module_name: String
§submodules: BTreeSet<String>
Direct submodules of this module.
Trait Implementations§
source§impl PartialEq for Module
impl PartialEq for Module
impl StructuralPartialEq for Module
Auto Trait Implementations§
impl Freeze for Module
impl RefUnwindSafe for Module
impl Send for Module
impl Sync for Module
impl Unpin for Module
impl UnwindSafe for Module
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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