pub trait Value<'map, 'elem: 'map>: Sized {
    fn get_from_map(map: &'map Map<'elem>, key: &str) -> Result<Self>;
    fn get_iter_from_map(
        map: &'map Map<'elem>,
        key: &str
    ) -> Result<ValueIter<'map, 'elem, Self>>; fn store_in_map(
        map: &'map mut Map<'elem>,
        key: &str,
        x: &Self
    ) -> Result<()>; fn append_to_map(
        map: &'map mut Map<'elem>,
        key: &str,
        x: &Self
    ) -> Result<()>; }
Expand description

A trait for values which can be stored in a map.

Required Methods

Retrieves the value from the map.

Retrieves an iterator over the values from the map.

Sets the property value in the map.

Appends the value to the map.

Implementations on Foreign Types

Implementors