[go: up one dir, main page]

Crate zng_unique_id

source ·
Expand description

Macros for generating unique ID types.

§Crate

This crate is part of the zng project.

§Cargo Features

This crate provides 2 feature flags, 2 enabled by default.

§"named"

Enable associated names for ID types.

Enabled by default.

§"bytemuck"

Derive bytemuck for ID types.

Enabled by default.

Re-exports§

  • pub use zng_txt::Txt;

Macros§

  • Implement debug and display for an unique ID type that also implements name.
  • Extend an unique ID type to have an optional attached name string, also implements.
  • Declare a new unique id type that is backed by a NonZeroU32.
  • Declare a new unique id type that is backed by a NonZeroU64.

Structs§

Enums§

  • Error when trying to associate give a name with an existing id.

Type Aliases§