Trait DefaultLabelledArray

Source
pub trait DefaultLabelledArray<E, L>: LabelledArray<E, L>
where E: Default,
{ // Required method fn with_len(label: L, len: usize) -> Self; }
Expand description

Trait for a labelled array with a default value.

Required Methods§

Source

fn with_len(label: L, len: usize) -> Self

Create a new array, initialized to default values.

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.

Implementors§

Source§

impl<A, R, E, L> DefaultLabelledArray<E, L> for RcArray<A, R, E, L>
where A: DefaultLabelledArray<E, R> + LabelledArray<E, R>, R: RefCounter<L>, E: Default,

Source§

impl<E, L, P> DefaultLabelledArray<E, L> for SafeArray<E, L, P>
where P: SafeArrayPtr<E, L>, E: Default,