Accessor

Derive Macro Accessor 

Source
#[derive(Accessor)]
Expand description

Derive field accessors for a struct (named or tuple).

Generates, for each field:

  • pub const acc_*() -> pathmod::Accessor<Self, FieldTy> accessors, and
  • with_* reconstruction helpers that consume self and replace just that field.

See the crate-level docs for usage examples.