Skip to main content

SpecExtendWith

Trait SpecExtendWith 

Source
pub(super) trait SpecExtendWith<T> {
    // Required method
    fn spec_extend_with(&mut self, n: usize, value: T);
}

Required Methods§

Source

fn spec_extend_with(&mut self, n: usize, value: T)

Extend the vector by n clones of value.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T: Clone, A: Allocator> SpecExtendWith<T> for Vec<T, A>

Source§

impl<T: TrivialClone, A: Allocator> SpecExtendWith<T> for Vec<T, A>