[][src]Struct mecs::component::dyn_storage::DynStorage

pub struct DynStorage(_, _);

Dynamic storage based on TypeId for types with 'static lifetime

Methods

impl DynStorage[src]

pub fn new<T>(value: T) -> Self where
    T: Component<'static, Self> + 'static, 
[src]

Creates a new dynamic storage from any storage component

#[must_use] pub fn into_inner(self) -> (TypeId, Box<dyn Any>)[src]

Consumes the storage and returns the object within

Trait Implementations

impl<T> Component<'static, DynStorage> for T where
    T: Debug + 'static, 
[src]

impl Debug for DynStorage[src]

impl Storage<'static> for DynStorage[src]

type Id = TypeId

The type representing a unique id for each component within this storage. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Component<'static, DynStorage> for T where
    T: Debug + 'static, 
[src]

impl<T> Component<'static, DynStorage> for T where
    T: Debug + 'static, 
[src]

impl<T> Component<'static, DynStorage> for T where
    T: Debug + 'static, 
[src]

impl<T> Component<'static, DynStorage> for T where
    T: Debug + 'static, 
[src]

impl<T> Component<'static, DynStorage> for T where
    T: Debug + 'static, 
[src]

impl<T> Component<'static, DynStorage> for T where
    T: Debug + 'static, 
[src]

impl<T> Component<'static, DynStorage> for T where
    T: Debug + 'static, 
[src]

impl<T> Component<'static, DynStorage> for T where
    T: Debug + 'static, 
[src]

impl<T> Component<'static, DynStorage> for T where
    T: Debug + 'static, 
[src]

impl<T> Component<'static, DynStorage> for T where
    T: Debug + 'static, 
[src]

impl<T> Component<'static, DynStorage> for T where
    T: Debug + 'static, 
[src]

impl<T> Component<'static, DynStorage> for T where
    T: Debug + 'static, 
[src]

impl<T> Component<'static, DynStorage> for T where
    T: Debug + 'static, 
[src]

impl<T> Component<'static, DynStorage> for T where
    T: Debug + 'static, 
[src]

impl<T> Component<'static, DynStorage> for T where
    T: Debug + 'static, 
[src]

impl<T> Component<'static, DynStorage> for T where
    T: Debug + 'static, 
[src]

impl<T> Component<'static, DynStorage> for T where
    T: Debug + 'static, 
[src]

impl<T> Component<'static, DynStorage> for T where
    T: Debug + 'static, 
[src]

impl<T> Component<'static, DynStorage> for T where
    T: Debug + 'static, 
[src]

impl<T> Component<'static, DynStorage> for T where
    T: Debug + 'static, 
[src]

impl<T> Component<'static, DynStorage> for T where
    T: Debug + 'static, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.