Struct pyo3_stub_gen::generate::stub_info::StubInfoBuilder
source · struct StubInfoBuilder {
modules: BTreeMap<String, Module>,
default_module_name: String,
pyproject: PyProject,
}
Fields§
§modules: BTreeMap<String, Module>
§default_module_name: String
§pyproject: PyProject
Implementations§
source§impl StubInfoBuilder
impl StubInfoBuilder
fn new(pyproject: PyProject) -> 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_enum(&mut self, info: &PyEnumInfo)
fn add_function(&mut self, info: &PyFunctionInfo)
fn add_error(&mut self, info: &PyErrorInfo)
fn add_variable(&mut self, info: &PyVariableInfo)
fn add_methods(&mut self, info: &PyMethodsInfo)
fn build(self) -> 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