[][src]Derive Macro timescale::ToTimescale

#[derive(ToTimescale)]

Automatically derive the ToTimescale trait and generate the expanded timescale structure.

Example

use nalgebra::Vector3;
use timescale::ToTimescale;

#[derive(Debug, Clone, ToTimescale)]
struct VectorDatapoint {
    position: Vector3<f64>,
    velocity: Vector3<f64>,
    acceleration: Vector3<f64>,
    net_force: Vector3<f64>,
}