DefaultWithLen

Trait DefaultWithLen 

Source
pub trait DefaultWithLen {
    // Required method
    fn default_with_len(len: usize) -> Self;
}
Expand description

Bound on GridSolver type parameters

Required Methods§

Source

fn default_with_len(len: usize) -> Self

Construct with default elements of given length; panic on failure

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: Clone + Default> DefaultWithLen for Vec<T>

Source§

impl<T: Copy + Default, const N: usize> DefaultWithLen for [T; N]

Implementors§