Skip to main content

BevyDefault

Trait BevyDefault 

Source
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§

Source

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

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".

Implementors§