Skip to content

A `PhantomData` analog which prevents "parameter is never used" error, but does not produce any restrictions in contrast with `PhantomData`.

Notifications You must be signed in to change notification settings

A1-Triard/phantom-type

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

maintenance: passively maintained

phantom-type

A PhantomData analog which prevents "parameter is never used" error, but does not produce any restrictions in contrast with PhantomData.

Optional no_std

If your crate has std feature, use the following method to specify phantom-type dependency:

[features]
default = ["std"]
std = ["phantom-type/std"]

[dependencies]
phantom-type = { version = "*", default-features = false }

About

A `PhantomData` analog which prevents "parameter is never used" error, but does not produce any restrictions in contrast with `PhantomData`.

Resources

Stars

Watchers

Forks

Packages

No packages published