pub struct PythonClass {
pub identity: ClassRef,
pub name: String,
pub descriptor: ClassDescriptor,
pub mro: Vec<ClassRef>,
/* private fields */
}Expand description
A declared Python class and its C3-linearized bases.
Fields§
§identity: ClassRefRuntime class identity. Python never substitutes an integer surrogate.
name: StringDisplay name.
descriptor: ClassDescriptorDirect bases in declaration order.
mro: Vec<ClassRef>C3 method resolution order, including this class.
Trait Implementations§
Source§impl Clone for PythonClass
impl Clone for PythonClass
Source§fn clone(&self) -> PythonClass
fn clone(&self) -> PythonClass
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for PythonClass
impl !UnwindSafe for PythonClass
impl Freeze for PythonClass
impl Send for PythonClass
impl Sync for PythonClass
impl Unpin for PythonClass
impl UnsafeUnpin for PythonClass
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