Skip to main content

InsertImpl

Trait InsertImpl 

Source
pub trait InsertImpl<Input, Index, Item> {
    type Output;

    // Required method
    fn impl_insert(input: Input, index: Index, item: Item) -> Self::Output;
}
Expand description

Implements element insertion to a vector.

Required Associated Types§

Required Methods§

Source

fn impl_insert(input: Input, index: Index, item: Item) -> Self::Output

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<S, Index, Item> InsertImpl<Vect<Item, S>, Index, Item> for ()
where S: Size, Index: Size, (): IncreaseOne<S> + CheckIndexInclusive<S, Index>,

Source§

type Output = Vect<Item, <() as IncreaseOne<S>>::Output>

Source§

fn impl_insert(input: Vect<Item, S>, index: Index, item: Item) -> Self::Output

Implementors§