Struct librsnek::objects::boolean::PyBooleanType
[−]
[src]
pub struct PyBooleanType {
singleton_true: RtObject,
singleton_false: RtObject,
}Fields
singleton_true: RtObject
singleton_false: RtObject
Trait Implementations
impl Clone for PyBooleanType[src]
fn clone(&self) -> PyBooleanType
Returns a copy of the value.
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source.
impl BuiltinType for PyBooleanType[src]
type T = RefCountedValue<BoolValue, RefCount>
type V = Boolean
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(value: Self::V) -> Self::T
Create an instance of the type ane return the struct that contains