Function ambient_api::global::default

source ·
pub fn default<T>() -> T
where T: Default,
Expand description

Helper function that returns the Default for the type T. Most useful with struct update syntax, or with initializing components.