pub trait StoreObject: Sized {
// Required methods
fn list(ctx: &StoreObjects) -> &Vec<Self>;
fn list_mut(ctx: &mut StoreObjects) -> &mut Vec<Self>;
}Expand description
Trait to represent an object managed by a context. This is implemented on the VM types managed by the context.
Required Methods§
Sourcefn list(ctx: &StoreObjects) -> &Vec<Self>
fn list(ctx: &StoreObjects) -> &Vec<Self>
List the objects in the store.
Sourcefn list_mut(ctx: &mut StoreObjects) -> &mut Vec<Self>
fn list_mut(ctx: &mut StoreObjects) -> &mut Vec<Self>
List the objects in the store, mutably.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".