pub struct PyModuleDef {
pub name: &'static PyStrInterned,
pub doc: Option<&'static PyStrInterned>,
pub methods: &'static [PyMethodDef],
pub slots: PyModuleSlots,
}Fieldsยง
ยงname: &'static PyStrInternedยงdoc: Option<&'static PyStrInterned>ยงmethods: &'static [PyMethodDef]ยงslots: PyModuleSlotsTrait Implementationsยง
Sourceยงimpl Debug for PyModuleDef
impl Debug for PyModuleDef
Sourceยงimpl MaybeTraverse for PyModuleDef
impl MaybeTraverse for PyModuleDef
fn try_traverse(&self, tracer_fn: &mut TraverseFn<'_>)
Sourceยงimpl PyClassDef for PyModuleDef
impl PyClassDef for PyModuleDef
Sourceยงimpl StaticType for PyModuleDef
impl StaticType for PyModuleDef
fn static_cell() -> &'static StaticCell<PyTypeRef>
fn static_metaclass() -> &'static Py<PyType>
fn static_baseclass() -> &'static Py<PyType>
fn static_type() -> &'static Py<PyType>
fn init_manually(typ: PyTypeRef) -> &'static Py<PyType>
Auto Trait Implementationsยง
impl Freeze for PyModuleDef
impl !RefUnwindSafe for PyModuleDef
impl !Send for PyModuleDef
impl !Sync for PyModuleDef
impl Unpin for PyModuleDef
impl !UnwindSafe for PyModuleDef
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