[−][src]Trait modtype::ConstValue
A trait that has one associated constant value.
To implement this trait, use use_modtype
rather than the derive macro.
Example
use modtype::ConstValue; #[derive(ConstValue)] #[modtype(const_value = 17u32)] enum Const17U32 {} assert_eq!(Const17U32::VALUE, 17u32);