Skip to main content

ListExt

Trait ListExt 

pub trait ListExt {
    // Required method
    fn with(self, other: Self) -> Self;
}
Expand description

Trait for concatenating two lists into one.

Required Methods§

fn with(self, other: Self) -> Self

Append the contents of other, returning the combined list.

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§

§

impl<T> ListExt for Vec<T>

§

fn with(self, other: Vec<T>) -> Vec<T>

Implementors§