pub struct PyModuleOptions {
krate: Option<KeywordAttribute<Crate, LitStrValue<Path>>>,
name: Option<KeywordAttribute<name, NameLitStr>>,
module: Option<KeywordAttribute<module, LitStr>>,
submodule: Option<submodule>,
gil_used: Option<KeywordAttribute<gil_used, LitBool>>,
}
Fields§
§krate: Option<KeywordAttribute<Crate, LitStrValue<Path>>>
§name: Option<KeywordAttribute<name, NameLitStr>>
§module: Option<KeywordAttribute<module, LitStr>>
§submodule: Option<submodule>
§gil_used: Option<KeywordAttribute<gil_used, LitBool>>
Implementations§
Source§impl PyModuleOptions
impl PyModuleOptions
fn take_pyo3_options(&mut self, attrs: &mut Vec<Attribute>) -> Result<()>
fn add_attributes( &mut self, attrs: impl IntoIterator<Item = PyModulePyO3Option>, ) -> Result<()>
Trait Implementations§
Source§impl Default for PyModuleOptions
impl Default for PyModuleOptions
Source§fn default() -> PyModuleOptions
fn default() -> PyModuleOptions
Returns the “default value” for a type. Read more
Source§impl Parse for PyModuleOptions
impl Parse for PyModuleOptions
fn parse(input: ParseStream<'_>) -> Result<Self>
Auto Trait Implementations§
impl Freeze for PyModuleOptions
impl RefUnwindSafe for PyModuleOptions
impl !Send for PyModuleOptions
impl !Sync for PyModuleOptions
impl Unpin for PyModuleOptions
impl UnwindSafe for PyModuleOptions
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