Struct librsnek::objects::object::PyObjectType
[−]
[src]
pub struct PyObjectType { pub object: RtObject, pub pytype: RtObject, }
Fields
object: RtObject
pytype: RtObject
Methods
impl PyObjectType
[src]
Trait Implementations
impl BuiltinType for PyObjectType
[src]
type T = RefCountedValue<ObjectValue, RefCount>
type V = Object
fn new(&self, rt: &Runtime, value: Self::V) -> RtObject
Create a new instance of the primitve type that his reference counted
fn init_type() -> Self
Create the type and do any static initialization that may be needed
fn inject_selfref(value: Self::T) -> RtObject
fn alloc(object: Self::V) -> Self::T
Create an instance of the type ane return the struct that contains