Trait wgpu_core::id::TypedId

source ·
pub trait TypedId: Copy + Debug + Any + 'static + WasmNotSendSync + Eq + Hash {
    // Required methods
    fn zip(index: u32, epoch: u32, backend: Backend) -> Self;
    fn unzip(self) -> (u32, u32, Backend);
    fn into_raw(self) -> NonZeroU64;
}
Expand description

Trait carrying methods for direct Id access.

Most wgpu-core clients should not use this trait. Unusual clients that need to construct Id values directly, or access their components, like the WGPU recording player, may use this trait to do so.

Required Methods§

source

fn zip(index: u32, epoch: u32, backend: Backend) -> Self

source

fn unzip(self) -> (u32, u32, Backend)

source

fn into_raw(self) -> NonZeroU64

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T> TypedId for Id<T>
where T: 'static + WasmNotSendSync,