Skip to main content

TryInsert

Trait TryInsert 

Source
trait TryInsert {
    // Required method
    fn try_insert_entry(&mut self, key: i32, value: TraceeInfo) -> bool;
}
Expand description

Inserts only when the key is absent; true when inserted.

Required Methods§

Source

fn try_insert_entry(&mut self, key: i32, value: TraceeInfo) -> bool

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl TryInsert for HashMap<i32, TraceeInfo>

Source§

fn try_insert_entry(&mut self, key: i32, value: TraceeInfo) -> bool

Implementors§