Macro impl_v_field

Source
macro_rules! impl_v_field {
    (
        $tag:ty,
        $field:ident,
        $product:ty,
        $asset:ty,
        $rational:ty,
        $time:ty,
        $addon:ty,
        $value:ty
    ) => { ... };
}
Expand description

Implements VirtualDynField for a ProductType field.

Maps a discriminant tag to a concrete virtual struct field using SumDynType.

Bounds are enforced via VirtualDynBound provided by ProductProvider.