Derive Macro DataTypeFromDataTypes

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

Implements a Rust’s std trait - From.

§Used on

  • data types

§Purpose

Based on data type allowed data types from its own enum, it implements the From trait from those units structs. And the trait for each variant with associated value.