BevyDefault

Trait BevyDefault 

Source
pub trait BevyDefault {
    // Required method
    fn bevy_default() -> Self;
}
Expand description

Trait used to provide default values for Bevy-external types that do not implement Default.

Required Methods§

Source

fn bevy_default() -> Self

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", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl BevyDefault for TextureFormat

Implementors§