Struct pyo3_stub_gen::type_info::PyClassInfo
source · pub struct PyClassInfo {
pub struct_id: fn() -> TypeId,
pub pyclass_name: &'static str,
pub module: Option<&'static str>,
pub doc: &'static str,
pub members: &'static [MemberInfo],
}
Expand description
Info of #[pyclass]
with Rust struct
Fields§
§struct_id: fn() -> TypeId
§pyclass_name: &'static str
§module: Option<&'static str>
Module name specified by #[pyclass(module = "foo.bar")]
doc: &'static str
Docstring
members: &'static [MemberInfo]
static members by #[pyo3(get, set)]
Trait Implementations§
source§impl Debug for PyClassInfo
impl Debug for PyClassInfo
source§impl From<&PyClassInfo> for ClassDef
impl From<&PyClassInfo> for ClassDef
source§fn from(info: &PyClassInfo) -> Self
fn from(info: &PyClassInfo) -> Self
Converts to this type from the input type.
impl Collect for PyClassInfo
Auto Trait Implementations§
impl Freeze for PyClassInfo
impl RefUnwindSafe for PyClassInfo
impl Send for PyClassInfo
impl Sync for PyClassInfo
impl Unpin for PyClassInfo
impl UnwindSafe for PyClassInfo
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