[][src]Crate phantom_newtype

Structs

Amount

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

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.

Instant

Instant<Unit> provides a type-safe way to keep absolute time of some events, expressed in Units (CPU ticks, seconds from epoch, years from birth, etc).

Traits

DisplayerOf

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