Derive Macro frame_support::DebugNoBound
source ยท #[derive(DebugNoBound)]
Expand description
Derive Debug
but do not bound any generic.
This is useful for type generic over runtime:
trait Config {
type C: Debug;
}
// Foo implements [`Debug`] because `C` bounds [`Debug`].
// Otherwise compilation will fail with an output telling `c` doesn't implement [`Debug`].
#[derive(DebugNoBound)]
struct Foo<T: Config> {
c: T::C,
}
Derive Debug
but do not bound any generics.
Docs at frame_support::DebugNoBound
.