Crate dmv[][src]

Expand description

Scoped IDs

crates.io docs MIT/Apache

This crate implements the idea of identifiers whose uniqueness is tied to a specific “scope”, allowing for a common Id type generic over the scope where each individual instantiation can only inter-operate with its own instantiation.

Common Use

todo!(mention how this is meant to be an ID base that other systems would further restrict/abstract for their own purposes)

Re-exports

pub use id::Comparable;
pub use id::Id;
pub use id::RawRepr;
pub use scope::GlobalScope;
pub use scope::Scope;

Modules

Useful trait aliases of DmvId with common types.

Definition of the Id traits.

Definition of the Scope trait and scope! macro.

Data structure that maps a Scope’s TypeId to a value.

Macros

Simple macro filling out the boiler-plate code of creating a new scope type called $ident with optional visibility $vis, and implementing the Scope trait.

Structs

The administrator of Ids.

Type Definitions

Convenient alias for the Id-implementing type of the object returned from Dmv::register.

Alias of the Id::Handle associated type of DmvId.