[−][src]Macro frame_support::parameter_types
Macro for easily creating a new implementation of the Get
trait. Use similarly to
how you would declare a const
:
parameter_types! {
pub const Argument: u64 = 42;
}
trait Config {
type Parameter: Get<u64>;
}
struct Runtime;
impl Config for Runtime {
type Parameter = Argument;
}