Add explicit managed traits and inherited method arity contracts
This commit is contained in:
@@ -44,6 +44,14 @@ impl<'a> NativeContext<'a> {
|
||||
self.store.attach_type(object, type_object)
|
||||
}
|
||||
|
||||
pub fn implement_trait(
|
||||
&mut self,
|
||||
definition: ObjectRef,
|
||||
capability: ObjectRef,
|
||||
) -> Result<(), VmError> {
|
||||
self.store.implement_trait(definition, capability)
|
||||
}
|
||||
|
||||
pub fn store(&self) -> &ObjectStore {
|
||||
self.store
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user