Skip to main content

Module cmp

Module cmp 

Source
Expand description

We need to impl PartialEq, Eq, PartialOrd, Ord, and Hash for all handle types in wgpu.

For types that have some already-unique property, we can use that property to implement these traits.

For types (like WebGPU) that don’t have such a property, we generate an identifier and use that.

MacrosΒ§

impl_eq_ord_hash_arc_address πŸ”’
Implements PartialEq, Eq, PartialOrd, Ord, and Hash for a type by comparing the addresses of the Arcs.
impl_eq_ord_hash_box_address πŸ”’
Implements PartialEq, Eq, PartialOrd, Ord, and Hash for a type by comparing the addresses of the Arcs.
impl_eq_ord_hash_proxy πŸ”’
Implements PartialEq, Eq, PartialOrd, Ord, and Hash for a type by proxying the operations to a single field.

StructsΒ§

AtomicU64
An integer type which can be safely shared between threads.
Identifier

EnumsΒ§

Ordering
Atomic memory orderings

StaticsΒ§

NEXT_ID πŸ”’