Trait librsnek::api::method::Init
[−]
[src]
pub trait Init { fn op_init(
&mut self,
rt: &Runtime,
named_args: &RtObject,
args: &RtObject,
kwargs: &RtObject
) -> Result<RtObject, Error> { ... } fn native_init(
&mut self,
named_args: &Type,
args: &Type,
kwargs: &Type
) -> Result<None, Error> { ... } }
Class constructor generally gets passed the instance created in new
Provided Methods
fn op_init(
&mut self,
rt: &Runtime,
named_args: &RtObject,
args: &RtObject,
kwargs: &RtObject
) -> Result<RtObject, Error>
&mut self,
rt: &Runtime,
named_args: &RtObject,
args: &RtObject,
kwargs: &RtObject
) -> Result<RtObject, Error>
fn native_init(
&mut self,
named_args: &Type,
args: &Type,
kwargs: &Type
) -> Result<None, Error>
&mut self,
named_args: &Type,
args: &Type,
kwargs: &Type
) -> Result<None, Error>
Implementors
impl Init for RtObject
impl Init for WeakRtObject
impl Init for Type
impl Init for RefCountedValue<BoolValue, RefCount>
impl Init for RefCountedValue<StringValue, RefCount>
impl Init for RefCountedValue<CodeValue, RefCount>
impl Init for RefCountedValue<ComplexValue, RefCount>
impl Init for RefCountedValue<DictValue, RefCount>
impl Init for RefCountedValue<FloatValue, RefCount>
impl Init for RefCountedValue<FrameValue, RefCount>
impl Init for RefCountedValue<FrozenSetValue, RefCount>
impl Init for RefCountedValue<IntValue, RefCount>
impl Init for RefCountedValue<IteratorValue, RefCount>
impl Init for RefCountedValue<ListValue, RefCount>
impl Init for RefCountedValue<FuncValue, RefCount>
impl Init for RefCountedValue<NoneValue, RefCount>
impl Init for RefCountedValue<ObjectValue, RefCount>
impl Init for RefCountedValue<TypeValue, RefCount>
impl Init for RefCountedValue<SetValue, RefCount>
impl Init for RefCountedValue<StringValue, RefCount>
impl Init for RefCountedValue<TupleValue, RefCount>