Lyricdev
GitHub

struct SeesConformer

pub struct SeesConformer :: [OnInterface]

Conforms to OnInterface.

Lets an interface's defaults see every field of the conformer, whatever its visibility.

The defaults over fields<Self>(), variants<Self>() and members<Self>() ask with the module of the conformer they are instantiated for. Equatable, Ordered, TotalOrder, Hashable, VariantName, Variants, Clone and std.codec's Encode and Decode carry it. Without it a default sees what the interface's module may name: another package's pub fields alone.