[][src]Type Definition rustpython_vm::obj::objtype::PyClassRef

type PyClassRef = PyRef<PyClass>;

Methods

impl PyClassRef[src]

pub fn set_str_attr<V: Into<PyObjectRef>>(&self, attr_name: &str, value: V)[src]

impl PyClassRef[src]

pub fn get_attr(&self, attr_name: &str) -> Option<PyObjectRef>[src]

This is the internal get_attr implementation for fast lookup on a class.

pub fn get_super_attr(&self, attr_name: &str) -> Option<PyObjectRef>[src]

pub fn has_attr(&self, attr_name: &str) -> bool[src]

pub fn get_attributes(self) -> PyAttributes[src]

Trait Implementations

impl PyClassImpl for PyClassRef[src]