Trait ply_rs::ply::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>