datastruct 0.1.1

A pure-data structure builder.
Documentation
1
2
3
4
5
6
7
8
9
10
11
/// The macro's `default` option will implement this trait for the structure.
pub trait DataStruct {
    /// Returns the default value of the structure.
    fn data_default() -> Self;
}

/// The macro's `const` option will implement this trait for the structure.
pub trait ConstDataStruct {
    /// The constant default value of the structure.
    const DEFAULT: Self;
}