Derive Macro DataTypeFromUnits

Source
#[derive(DataTypeFromUnits)]
{
    // Attributes available to this derive:
    #[data_type]
}
Expand description

Implements a Rust’s std trait - From.

§Used on

  • data types

§Usage

Based on data type allowed units from its own enum, it implements the From trait from those units structs. And the custom trait <unit>Storage from each variant.