[][src]Struct specs::storage::VacantEntry

pub struct VacantEntry<'a, 'b: 'a, T: 'a, D: 'a> { /* fields omitted */ }

An entry to a storage which does not have a component associated to the entity.

Methods

impl<'a, 'b, T, D> VacantEntry<'a, 'b, T, D> where
    T: Component,
    D: DerefMut<Target = MaskedStorage<T>>, 
[src]

pub fn insert(self, component: T) -> &'a mut T[src]

Inserts a value into the storage.

Auto Trait Implementations

impl<'a, 'b, T, D> Unpin for VacantEntry<'a, 'b, T, D> where
    'b: 'a, 

impl<'a, 'b, T, D> Sync for VacantEntry<'a, 'b, T, D> where
    D: Sync,
    T: Sync

impl<'a, 'b, T, D> Send for VacantEntry<'a, 'b, T, D> where
    D: Send,
    T: Send

impl<'a, 'b, T, D> !UnwindSafe for VacantEntry<'a, 'b, T, D>

impl<'a, 'b, T, D> !RefUnwindSafe for VacantEntry<'a, 'b, T, D>

Blanket Implementations

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.

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

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

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

impl<T> Resource for T where
    T: Any + Send + Sync
[src]

impl<T> Any for T where
    T: Any
[src]

impl<T> Event for T where
    T: Send + Sync + 'static, 
[src]