quartiq / miniconf

Rust serialize/deserialize/access reflection for trees (no_std, no alloc)
MIT License
23 stars 2 forks source link

Redesign atomic/terminal elements #99

Closed jordens closed 1 year ago

jordens commented 1 year ago

As discussed in https://github.com/quartiq/miniconf/pull/96#discussion_r999242502 we could consider:

Not completely sure whether this fully maps onto the trait architecture of rust though and whether there are no conflicting trait impls or incompatibilities. Not sure whether the traits Miniconf and MiniconfAtomic can/should/need to be disjoint for this.


#[derive(Serialize, Deserialize, Miniconf)]
struct Settings {
    a: [0u8; 2],  // "a = [0, 1]"
    #[miniconf(defer)]
    b: [0u8; 8],  // "b/1 = 1"
}