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