Skip to main content

Mapping

Trait Mapping 

Source
pub trait Mapping {
    // Required method
    fn get_value(&self, key: &str) -> Option<&str>;
}
Expand description

Abstracts concrete map types so that FromMapping could accept any of the implementors.

Required Methods§

Source

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

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Mapping for &BTreeMap<&str, &str>

Source§

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

Source§

impl Mapping for &BTreeMap<&str, String>

Source§

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

Source§

impl Mapping for &BTreeMap<String, &str>

Source§

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

Source§

impl Mapping for &BTreeMap<String, String>

Source§

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

Source§

impl Mapping for &HashMap<&str, &str>

Source§

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

Source§

impl Mapping for &HashMap<&str, String>

Source§

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

Source§

impl Mapping for &HashMap<String, &str>

Source§

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

Source§

impl Mapping for &HashMap<String, String>

Source§

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

Source§

impl Mapping for BTreeMap<&str, &str>

Source§

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

Source§

impl Mapping for BTreeMap<&str, String>

Source§

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

Source§

impl Mapping for BTreeMap<String, &str>

Source§

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

Source§

impl Mapping for BTreeMap<String, String>

Source§

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

Source§

impl Mapping for HashMap<&str, &str>

Source§

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

Source§

impl Mapping for HashMap<&str, String>

Source§

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

Source§

impl Mapping for HashMap<String, &str>

Source§

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

Source§

impl Mapping for HashMap<String, String>

Source§

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

Implementors§