Trait artichoke_backend::class_registry::ClassRegistry[][src]

pub trait ClassRegistry {
    fn def_class<T>(&mut self, spec: Spec) -> Result<(), Error>
    where
        T: Any
;
fn class_spec<T>(&self) -> Result<Option<&Spec>, Error>
    where
        T: Any
;
fn class_of<T>(&mut self) -> Result<Option<Value>, Error>
    where
        T: Any
;
fn new_instance<T>(
        &mut self,
        args: &[Value]
    ) -> Result<Option<Value>, Error>
    where
        T: Any
; fn is_class_defined<T>(&self) -> bool
    where
        T: Any
, { ... } }

Required methods

Provided methods

Implementors