[][src]Struct wgpu_native::Registry

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

Implementations

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

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

pub fn new_identity(&self, id_in: Input<I>) -> (I, Output<I>)[src]

pub fn register_identity<A: Access<T>>(
    &self,
    id_in: Input<I>,
    value: T,
    token: &mut Token<'_, A>
) -> Output<I>
[src]

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

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

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

Trait Implementations

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

Auto Trait Implementations

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

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

impl<T, I> Sync for Registry<T, I> where
    I: Send + Sync,
    T: Send + Sync

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

impl<T, I> UnwindSafe for Registry<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.