Trait Insert

Source
pub trait Insert<K, V>
where K: ?Sized, V: ?Sized,
{ type Output: ?Sized; // Required method fn insert(&mut self, _: K, _: V) -> Self::Output; }

Required Associated Types§

Required Methods§

Source

fn insert(&mut self, _: K, _: V) -> Self::Output

Implementations on Foreign Types§

Source§

impl Insert<usize, char> for String

Source§

type Output = ()

Source§

fn insert(&mut self, index: usize, element: char) -> Self::Output

Source§

impl<'a, K, V> Insert<K, V> for BTreeMap<K, V>
where K: Eq + Ord,

Source§

type Output = Option<V>

Source§

fn insert(&mut self, k: K, v: V) -> Self::Output

Source§

impl<'a, K, V, S> Insert<K, V> for HashMap<K, V, S>
where K: Eq + Hash, S: BuildHasher,

Source§

type Output = Option<V>

Source§

fn insert(&mut self, k: K, v: V) -> Self::Output

Source§

impl<T> Insert<usize, T> for LinkedList<T>

Source§

type Output = ()

Source§

fn insert(&mut self, index: usize, element: T)

Source§

impl<T> Insert<usize, T> for VecDeque<T>

Source§

type Output = ()

Source§

fn insert(&mut self, index: usize, element: T) -> Self::Output

Source§

impl<T> Insert<usize, T> for Vec<T>

Source§

type Output = ()

Source§

fn insert(&mut self, index: usize, element: T) -> Self::Output

Implementors§