BspVariableValue

Derive Macro BspVariableValue 

Source
#[derive(BspVariableValue)]
{
    // Attributes available to this derive:
    #[bsp2]
    #[bsp29]
    #[bsp30]
    #[bsp38]
    #[qbism]
}
Expand description

Automatically implement BspVariableValue on single-field tuple structs. Note: This will additionally implement From<T> where (inner field type): From<T> for the type, in order to convert from the individual format types, and will implement {Deref,DerefMut}<Target = (inner field type)>. Specify the variant types per BSP format with #[bsp2(..)], #[bsp29(..)], #[bsp30(..)] and #[bsp38(..)] annotations respectively. All format variants must be specified, if a field does not exist in a format use NoField and implement From<NoField> for the inner field type.