Skip to main content

Contribution

Trait Contribution 

Source
pub trait Contribution {
    const ID: ContributionId;
    const REQUIRED: bool = true;
}
Expand description

Describes a composition-time declaration consumed by a domain target.

Required Associated Constants§

Source

const ID: ContributionId

Stable semantic identity; not a display label.

Provided Associated Constants§

Source

const REQUIRED: bool = true

Whether dropping this declaration without a consumer is an error.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§