Skip to main content

Inserter

Trait Inserter 

Source
pub trait Inserter<T> {
    // Required method
    fn insert(&self, index: usize, value: T);
}
Expand description

A trait for inserting data into a vector.

Required Methods§

Source

fn insert(&self, index: usize, value: T)

Insert a value into the vector.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§