Trait ArrayDefault

Source
pub trait ArrayDefault<T> {
    // Required method
    fn default_array() -> Self;
}

Required Methods§

Source

fn default_array() -> Self

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<T: Default + Copy, const N: usize> ArrayDefault<T> for [T; N]

Implementors§