Skip to main content

Module props

Module props 

Source
Expand description

What #[derive(usage::Config)] generates, and how flattened groups compose.

A derive expansion sees one struct. A settings struct that flattens another — pitchfork keeps eight groups in eight structs — therefore joins tables through this trait’s associated const, the same way usage::Cli joins a flattened group’s flags: the child declares its own slice, and the parent concatenates at compile time. Nothing is assembled at run time, and a prop’s id is its position in the joined slice.

Traits§

Props
A group of settings declared in code.

Functions§

concat_prop_specs
Join flattened groups’ spec metadata in the same order as their properties.
concat_props
Join groups of prop metadata into one slice, at compile time.