pub trait HasGroup {
const GROUP_NAME: &'static str;
}Expand description
Group binding declared by OptionDecl declarations. Each
option belongs to exactly one crate::OptionGroup (selected per
declaration block in the macro, with optional per-option
override). Stored on the metadata record so :customize <name>
can prefix-match.
Trait alias rather than a const on OptionDecl because the
group is set by the macro at the call site, not by the option
type itself.
Required Associated Constants§
Sourceconst GROUP_NAME: &'static str
const GROUP_NAME: &'static str
Group display name ("editor", "lsp", …). The macro
pulls this from the group = SomeGroup; directive at the
declaration block’s head.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".