Trait assets_manager::asset::Storable

source ·
pub trait Storable: Sized + Send + Sync + 'static { }
Expand description

Trait marker to store values in a cache.

Implementing this trait is necessary to use AssetCache::get_cached. This trait is already implemented for all Compound types.

This trait is a workaround about Rust’s current lack of specialization.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Storable for &'static str

source§

impl Storable for char

source§

impl Storable for f32

source§

impl Storable for f64

source§

impl Storable for i8

source§

impl Storable for i16

source§

impl Storable for i32

source§

impl Storable for i64

source§

impl Storable for i128

source§

impl Storable for isize

source§

impl Storable for u8

source§

impl Storable for u16

source§

impl Storable for u32

source§

impl Storable for u64

source§

impl Storable for u128

source§

impl Storable for usize

source§

impl<T: Send + Sync + 'static> Storable for &'static [T]

source§

impl<T: Send + Sync + 'static> Storable for Vec<T>

Implementors§

source§

impl Storable for SharedBytes

source§

impl<T> Storable for T
where T: Compound,