ply_rs::ply

Trait Addable

Source
pub trait Addable<V: Key> {
    // Required method
    fn add(&mut self, new_value: V);
}
Expand description

Convenience trait to assure consistency between map key and name attribute of stored element.

Required Methods§

Source

fn add(&mut self, new_value: V)

Takes a value that provides a key and stores it under the given key.

Implementors§

Source§

impl<V: Key> Addable<V> for KeyMap<V>