Skip to main content

features

Attribute Macro features 

Source
#[features]
Expand description

Declare a feature contract: what users can do within a component’s scope, and the commands each feature is implemented by.

ⓘ
#[bern::features]
pub enum MediaFeature {
    /// Choose which clip plays.
    #[commands(feature)]
    Clip,
}