Skip to main content

ConcatVec

Trait ConcatVec 

Source
pub trait ConcatVec<T>: Sealed {
    // Required method
    fn concat_vec(self) -> Vec<T>;
}

Required Methods§

Source

fn concat_vec(self) -> Vec<T>

concat() for Vec<Vec<T>> that avoids clones if self is length-1.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<T> ConcatVec<T> for Vec<Vec<T>>
where T: Copy,

Source§

fn concat_vec(self) -> Vec<T>

Implementors§