Skip to main content

NamedResourceBundleDecl

Trait NamedResourceBundleDecl 

Source
pub trait NamedResourceBundleDecl: ResourceBundleDecl {
    const NAMES: &'static [&'static str];
}
Expand description

Optional name metadata for resource bundles.

Bundles created via bundle_resources! implement this automatically. The derive macro uses these canonical slot names to resolve bundle.resource bindings without guessing enum variant casing from config strings.

Required Associated Constants§

Source

const NAMES: &'static [&'static str]

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl NamedResourceBundleDecl for ThreadPoolBundle

Available on crate feature std only.
Source§

const NAMES: &'static [&'static str]