Trait librsnek::api::typing::BuiltinType [] [src]

pub trait BuiltinType {
    type T;
    type V;
    fn init_type() -> Self;
    fn inject_selfref(_: Self::T) -> ObjectRef;
    fn alloc(value: Self::V) -> Self::T;
    fn new(&self, rt: &Runtime, value: Self::V) -> ObjectRef;
}

The primordial trait from which all builtin Py* types are

Associated Types

Required Methods

Create the type and do any static initialization that may be needed

Create an instance of the type ane return the struct that contains

Create a new instance of the primitve type that his reference counted

Implementors