Skip to main content

Store

Trait Store 

Source
pub trait Store: 'static { }
Expand description

Marker trait for types that can be inserted into a Pax local store.

Stored objects need to be unique for any given stack. Avoid inserting broad reusable types directly; prefer a local newtype that represents one specific store purpose.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§