Attribute Macro cpy_binder::cpy_struct

source ·
#[cpy_struct]
Expand description

Macro used to export structures

Example

#[cpy_struct]
#[comment = "2D Size"]
struct Size2D {
    width: f64,
    height: f64,
}

#[cpy_struct]
#[comment = "Tire structure"]
struct Tire {
    material: Material,
    pressure: f64,
    size: Size2D,
}