improve doc (#4239)

This commit is contained in:
thiolliere
2019-11-28 11:06:06 +01:00
committed by Bastian Köcher
parent 630f7d8425
commit 2f35d7f003
+3
View File
@@ -48,6 +48,9 @@ pub trait Callable<T> {
// https://github.com/rust-lang/rust/issues/51331
pub type CallableCallFor<A, T> = <A as Callable<T>>::Call;
/// A type that can be used as a parameter in a dispatchable function.
///
/// When using `decl_module` all arguments for call functions must implement this trait.
pub trait Parameter: Codec + EncodeLike + Clone + Eq + fmt::Debug {}
impl<T> Parameter for T where T: Codec + EncodeLike + Clone + Eq + fmt::Debug {}