pub trait ConfigureScriptAssetSettings {
// Required method
fn add_supported_script_extensions(
&mut self,
extensions: &[&'static str],
) -> &mut Self;
}
Expand description
Trait for adding a supported extension to the script asset settings.
This is only valid in the plugin building phase, as the asset loader will be created in the finalize
phase.
Any changes to the asset settings after that will not be reflected in the asset loader.
Required Methods§
Sourcefn add_supported_script_extensions(
&mut self,
extensions: &[&'static str],
) -> &mut Self
fn add_supported_script_extensions( &mut self, extensions: &[&'static str], ) -> &mut Self
Adds a supported extension to the asset settings
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.