Derive Macro IsContainer

#[derive(IsContainer)]
{
    // Attributes available to this derive:
    #[proxy]
    #[skip_proxy_definition]
    #[array]
}
Expand description

Creates a proxy type to implement IsContainer for, where IsContainer::Container resolves to the type being derived.

That may be a bit confusing. In other words - invoking this derive macro on a type A creates an impl of IsContainer for a proxy type B, where B::Container = A.

ยงAttributes:

  • proxy - If present, the generated type will be the argument of this attribute.
  • skip_proxy_definition - If present the generated type will not be defined.