pub struct Module {
pub doc: String,
pub class: BTreeMap<TypeId, ClassDef>,
pub enum_: BTreeMap<TypeId, EnumDef>,
pub function: BTreeMap<&'static str, Vec<FunctionDef>>,
pub variables: BTreeMap<&'static str, VariableDef>,
pub type_aliases: BTreeMap<&'static str, TypeAliasDef>,
pub name: String,
pub default_module_name: String,
pub submodules: BTreeSet<String>,
pub module_re_exports: Vec<ModuleReExport>,
pub verbatim_all_entries: BTreeSet<String>,
pub excluded_all_entries: BTreeSet<String>,
}Expand description
Type info for a Python (sub-)module. This corresponds to a single *.pyi file.
Fields§
§doc: String§class: BTreeMap<TypeId, ClassDef>§enum_: BTreeMap<TypeId, EnumDef>§function: BTreeMap<&'static str, Vec<FunctionDef>>§variables: BTreeMap<&'static str, VariableDef>§type_aliases: BTreeMap<&'static str, TypeAliasDef>§name: String§default_module_name: String§submodules: BTreeSet<String>Direct submodules of this module.
module_re_exports: Vec<ModuleReExport>Module re-exports for all
verbatim_all_entries: BTreeSet<String>Verbatim entries to add to all
excluded_all_entries: BTreeSet<String>Explicitly excluded entries from all
Implementations§
Trait Implementations§
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§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