struct StubInfoBuilder {
modules: BTreeMap<String, Module>,
default_module_name: String,
python_root: PathBuf,
is_mixed_layout: bool,
}Fields§
§modules: BTreeMap<String, Module>§default_module_name: String§python_root: PathBuf§is_mixed_layout: boolImplementations§
Source§impl StubInfoBuilder
impl StubInfoBuilder
fn from_pyproject_toml(pyproject: PyProject) -> Self
fn from_project_root( default_module_name: String, project_root: PathBuf, is_mixed_layout: bool, ) -> Self
fn get_module(&mut self, name: Option<&str>) -> &mut Module
fn register_submodules(&mut self)
fn add_class(&mut self, info: &PyClassInfo)
fn add_complex_enum(&mut self, info: &PyComplexEnumInfo)
fn add_enum(&mut self, info: &PyEnumInfo)
fn add_function(&mut self, info: &PyFunctionInfo) -> Result<()>
fn add_variable(&mut self, info: &PyVariableInfo)
fn add_module_doc(&mut self, info: &ModuleDocInfo)
fn add_methods(&mut self, info: &PyMethodsInfo) -> Result<()>
fn build(self) -> Result<StubInfo>
Auto Trait Implementations§
impl Freeze for StubInfoBuilder
impl RefUnwindSafe for StubInfoBuilder
impl Send for StubInfoBuilder
impl Sync for StubInfoBuilder
impl Unpin for StubInfoBuilder
impl UnwindSafe for StubInfoBuilder
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> 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