Skip to main content

StoreObject

Trait StoreObject 

Source
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§

Source

fn list(ctx: &StoreObjects) -> &Vec<Self>

List the objects in the store.

Source

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".

Implementors§