[][src]Struct wgpu_core::hub::Registry

pub struct Registry<T, I: TypedId, F: IdentityHandlerFactory<I>> { /* fields omitted */ }

Methods

impl<T, I: TypedId + Copy, F: IdentityHandlerFactory<I>> Registry<T, I, F>[src]

pub fn register<A: Access<T>>(&self, id: I, value: T, _token: &mut Token<A>)[src]

pub fn read<'a, A: Access<T>>(
    &'a self,
    _token: &'a mut Token<A>
) -> (RwLockReadGuard<'a, Storage<T, I>>, Token<'a, T>)
[src]

pub fn write<'a, A: Access<T>>(
    &'a self,
    _token: &'a mut Token<A>
) -> (RwLockWriteGuard<'a, Storage<T, I>>, Token<'a, T>)
[src]

impl<T, I: TypedId + Copy, F: IdentityHandlerFactory<I>> Registry<T, I, F>[src]

pub fn register_identity<A: Access<T>>(
    &self,
    id_in: <F::Filter as IdentityHandler<I>>::Input,
    value: T,
    token: &mut Token<A>
) -> I
[src]

pub fn unregister<'a, A: Access<T>>(
    &self,
    id: I,
    _token: &'a mut Token<A>
) -> (T, Token<'a, T>)
[src]

pub fn free_id(&self, id: I)[src]

Trait Implementations

impl<T: Debug, I: Debug + TypedId, F: Debug + IdentityHandlerFactory<I>> Debug for Registry<T, I, F> where
    F::Filter: Debug
[src]

Auto Trait Implementations

impl<T, I, F> !RefUnwindSafe for Registry<T, I, F>

impl<T, I, F> Send for Registry<T, I, F> where
    I: Send,
    T: Send,
    <F as IdentityHandlerFactory<I>>::Filter: Send

impl<T, I, F> Sync for Registry<T, I, F> where
    I: Send + Sync,
    T: Send + Sync,
    <F as IdentityHandlerFactory<I>>::Filter: Sync

impl<T, I, F> Unpin for Registry<T, I, F> where
    I: Unpin,
    T: Unpin,
    <F as IdentityHandlerFactory<I>>::Filter: Unpin

impl<T, I, F> UnwindSafe for Registry<T, I, F> where
    I: UnwindSafe,
    T: UnwindSafe,
    <F as IdentityHandlerFactory<I>>::Filter: 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.