[−][src]Struct wgpu_core::hub::Storage
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]
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,
I: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, I> Send for Storage<T, I> where
I: Send,
T: Send,
I: Send,
T: Send,
impl<T, I> Sync for Storage<T, I> where
I: Sync,
T: Sync,
I: Sync,
T: Sync,
impl<T, I> Unpin for Storage<T, I> where
I: Unpin,
T: Unpin,
I: Unpin,
T: Unpin,
impl<T, I> UnwindSafe for Storage<T, I> where
I: UnwindSafe,
T: UnwindSafe,
I: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,