pub struct PythonClass {
pub id: u64,
pub name: String,
pub bases: Vec<u64>,
pub mro: Vec<u64>,
}Expand description
A declared Python class and its C3-linearized bases.
Fields§
§id: u64Stable class identity.
name: StringDisplay name.
bases: Vec<u64>Direct bases in declaration order.
mro: Vec<u64>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 moreSource§impl Debug for PythonClass
impl Debug for PythonClass
impl Eq for PythonClass
Source§impl PartialEq for PythonClass
impl PartialEq for PythonClass
impl StructuralPartialEq for PythonClass
Auto Trait Implementations§
impl Freeze for PythonClass
impl RefUnwindSafe for PythonClass
impl Send for PythonClass
impl Sync for PythonClass
impl Unpin for PythonClass
impl UnsafeUnpin for PythonClass
impl UnwindSafe 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.