[−][src]Struct wgpu_core::hub::Registry
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]
&'a self,
_token: &'a mut Token<A>
) -> (RwLockReadGuard<'a, Storage<T, I>>, Token<'a, T>)
pub fn write<'a, A: Access<T>>(
&'a self,
_token: &'a mut Token<A>
) -> (RwLockWriteGuard<'a, Storage<T, I>>, Token<'a, T>)
[src]
&'a self,
_token: &'a mut Token<A>
) -> (RwLockWriteGuard<'a, Storage<T, I>>, Token<'a, T>)
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]
&self,
id_in: <F::Filter as IdentityHandler<I>>::Input,
value: T,
token: &mut Token<A>
) -> I
pub fn unregister<'a, A: Access<T>>(
&self,
id: I,
_token: &'a mut Token<A>
) -> (T, Token<'a, T>)
[src]
&self,
id: I,
_token: &'a mut Token<A>
) -> (T, Token<'a, T>)
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]
F::Filter: Debug,
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,
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,
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,
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,
I: UnwindSafe,
T: UnwindSafe,
<F as IdentityHandlerFactory<I>>::Filter: 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>,