Trait ObjectStoreContent

Source
pub trait ObjectStoreContent {
    type IdType;

    // Required methods
    fn new_id(id_val: u16) -> Self::IdType;
    fn id(&self) -> &Self::IdType;
}

Required Associated Types§

Required Methods§

Source

fn new_id(id_val: u16) -> Self::IdType

Source

fn id(&self) -> &Self::IdType

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ObjectStoreContent for Box<dyn Action + Send + Sync>

Source§

impl ObjectStoreContent for Box<dyn Var + Send + Sync>

Source§

type IdType = VarId

Source§

fn new_id( id_val: u16, ) -> <Box<dyn Var + Send + Sync> as ObjectStoreContent>::IdType

Source§

fn id(&self) -> &<Box<dyn Var + Send + Sync> as ObjectStoreContent>::IdType

Implementors§