pub trait ValueNotArray<'map, 'elem: 'map>: Sized {
    // Required methods
    fn get_iter_from_map(
        map: &'map Map<'elem>,
        key: &str
    ) -> Result<ValueIter<'map, 'elem, Self>>;
    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§

source

fn get_iter_from_map( map: &'map Map<'elem>, key: &str ) -> Result<ValueIter<'map, 'elem, Self>>

Retrieves an iterator over the values from the map.

source

fn append_to_map(map: &'map mut Map<'elem>, key: &str, x: &Self) -> Result<()>

Appends the value to the map.

Implementations on Foreign Types§

source§

impl<'map, 'elem: 'map> ValueNotArray<'map, 'elem> for f64

source§

fn get_iter_from_map( map: &'map Map<'elem>, key: &str ) -> Result<ValueIter<'map, 'elem, Self>>

source§

fn append_to_map(map: &mut Map<'_>, key: &str, x: &Self) -> Result<()>

source§

impl<'map, 'elem: 'map> ValueNotArray<'map, 'elem> for i64

source§

fn get_iter_from_map( map: &'map Map<'elem>, key: &str ) -> Result<ValueIter<'map, 'elem, Self>>

source§

fn append_to_map(map: &mut Map<'_>, key: &str, x: &Self) -> Result<()>

source§

impl<'map, 'elem: 'map> ValueNotArray<'map, 'elem> for String

source§

fn get_iter_from_map( map: &'map Map<'elem>, key: &str ) -> Result<ValueIter<'map, 'elem, Self>>

source§

fn append_to_map(map: &'map mut Map<'_>, key: &str, x: &Self) -> Result<()>

Implementors§

source§

impl<'map, 'elem: 'map> ValueNotArray<'map, 'elem> for FrameRef<'elem>

source§

impl<'map, 'elem: 'map> ValueNotArray<'map, 'elem> for Function<'elem>

source§

impl<'map, 'elem: 'map> ValueNotArray<'map, 'elem> for Node<'elem>

source§

impl<'map, 'elem: 'map> ValueNotArray<'map, 'elem> for Data<'elem>