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

Implementors