Skip to main content

TextMap

Trait TextMap 

Source
pub trait TextMap {
    // Required methods
    fn set(&mut self, key: &str, value: &str);
    fn get(&self, key: &str) -> Option<&str>;
}
Expand description

This trait represents carriers which support Text Map format.

Text Map is an arbitrary string-to-string map with an unrestricted character set for both keys and values.

Required Methods§

Source

fn set(&mut self, key: &str, value: &str)

Sets the value of key in the map to value.

Source

fn get(&self, key: &str) -> Option<&str>

Gets the value of `key’.

Implementations on Foreign Types§

Source§

impl TextMap for BTreeMap<String, String>

Source§

fn set(&mut self, key: &str, value: &str)

Source§

fn get(&self, key: &str) -> Option<&str>

Source§

impl<S: BuildHasher> TextMap for HashMap<String, String, S>

Source§

fn set(&mut self, key: &str, value: &str)

Source§

fn get(&self, key: &str) -> Option<&str>

Implementors§