Skip to main content

Inserter

Trait Inserter 

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

An inserter into a SocketMap.

Required Methods§

Source

fn insert(self, item: T)

Inserts the provided item and consumes self.

Inserts a single item and consumes the inserter (thus preventing additional insertions).

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<'a, T, E: Extend<T>> Inserter<T> for &'a mut E

Source§

fn insert(self, item: T)

Source§

impl<T> Inserter<T> for Infallible

Source§

fn insert(self, _: T)

Implementors§