[][src]Crate phantom_newtype

Structs

AmountOf

AmountOf<Unit> provides a type-safe way to keep an amount of some Unit.

BitMask

BitMask<Unit> provides a type-safe way to work with bitmasks.

DisplayProxy

An object DisplayProxy, when is asked to display itself, displays T using the specified Displayer instead.

Id

Id<Entity, Repr> provides a type-safe way to keep ids of entities. Note that there's no default for Repr type, the type of the identifier should be always provided explicitly.

Traits

DisplayerOf

This trait provides display capabilities for the type it parameterized with, T.