pub trait VirtualError<Discriminant: DiscriminantTag = ()> {
type Error: RuntimeError;
}Expand description
Defines the error type associated with a virtual component
identified by a Discriminant.
VirtualError provides a way to associate a specific error type
with a VirtualDynField or related abstraction, without hardcoding
the error into the implementation.
§Discriminant
The Discriminant acts as a key linking a virtual field (or related
abstraction) to its corresponding error type.
This ensures multiple independent virtual components can coexist without ambiguity.
§Default Discriminant
Discriminant = (): associates a single default error type, meaning only one virtual component is assumed.