pub trait BevyDefault {
// Required method
fn bevy_default() -> Self;
}👎Deprecated:
Use ExtractedView::texture_format where possible. Bevy does not encourage a default TextureFormat anymore. If you really need this, use TextureFormat::Rgba8UnormSrgb
Expand description
Trait used to provide default values for Bevy-external types that
do not implement Default.
Required Methods§
Sourcefn bevy_default() -> Self
👎Deprecated: Use ExtractedView::texture_format where possible. Bevy does not encourage a default TextureFormat anymore. If you really need this, use TextureFormat::Rgba8UnormSrgb
fn bevy_default() -> Self
Use ExtractedView::texture_format where possible. Bevy does not encourage a default TextureFormat anymore. If you really need this, use TextureFormat::Rgba8UnormSrgb
Returns the default value for a type.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".