[][src]Struct wgpu_core::hub::Storage

pub struct Storage<T, I: TypedId> { /* fields omitted */ }

Methods

impl<T, I: TypedId> Storage<T, I>[src]

pub fn contains(&self, id: I) -> bool[src]

pub fn insert(&mut self, id: I, value: T) -> Option<T>[src]

pub fn remove(&mut self, id: I) -> Option<T>[src]

pub fn iter(&self, backend: Backend) -> impl Iterator<Item = (I, &T)>[src]

Trait Implementations

impl<T: Debug, I: Debug + TypedId> Debug for Storage<T, I>[src]

impl<T, I: TypedId> Index<I> for Storage<T, I>[src]

type Output = T

The returned type after indexing.

impl<T, I: TypedId> IndexMut<I> for Storage<T, I>[src]

Auto Trait Implementations

impl<T, I> RefUnwindSafe for Storage<T, I> where
    I: RefUnwindSafe,
    T: RefUnwindSafe

impl<T, I> Send for Storage<T, I> where
    I: Send,
    T: Send

impl<T, I> Sync for Storage<T, I> where
    I: Sync,
    T: Sync

impl<T, I> Unpin for Storage<T, I> where
    I: Unpin,
    T: Unpin

impl<T, I> UnwindSafe for Storage<T, I> where
    I: UnwindSafe,
    T: UnwindSafe

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> 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.