pub trait RepeatExt: Copy {
    // Required method
    fn repeat<const N: usize>(self) -> Array<Self, N>;
}
Expand description

Repeat.

Required Methods§

source

fn repeat<const N: usize>(self) -> Array<Self, N>

Returns an array with the given value repeated N times.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T: Copy> RepeatExt for T