RegistryId in rustc_data_structures::sync::worker_local - Rust (original) (raw)

struct RegistryId(*const RegistryData);

Expand description

A pointer to the RegistryData which uniquely identifies a registry. This identifier can be reused if the registry gets freed.

Source§

Source

Verifies that the current thread is associated with the registry and returns its unique index within the registry. This panics if the current thread is not associated with this registry.

Note that there’s a race possible where the identifier in THREAD_DATA could be reused so this can succeed from a different registry.

Source§

Source§

Source§

Tests for self and other values to be equal, and is used by ==.

1.0.0 · Source§

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Source§

Source§

§

§

§

§

§

§

§

§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 8 bytes