pub trait VariableValues {
    type Key: AsRef<str>;
    type Value: Value<true>;
    type Iterator<'a>: Iterator<Item = (&'a Self::Key, &'a Self::Value)>
       where Self: 'a;

    // Required method
    fn iter(&self) -> Self::Iterator<'_>;

    // Provided method
    fn get(&self, key: &str) -> Option<&Self::Value> { ... }
}

Required Associated Types§

source

type Key: AsRef<str>

source

type Value: Value<true>

source

type Iterator<'a>: Iterator<Item = (&'a Self::Key, &'a Self::Value)> where Self: 'a

Required Methods§

source

fn iter(&self) -> Self::Iterator<'_>

Provided Methods§

source

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

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl VariableValues for Map<String, Value>

§

type Key = String

§

type Value = Value

§

type Iterator<'a> = Iter<'a>

source§

fn iter(&self) -> Self::Iterator<'_>

Implementors§