Function argdata::map[][src]

pub fn map<'d, T>(items: &'d T) -> Map<'d, T> where
    T: MapContainer,
    <T as MapContainer>::Key: Argdata<'d>,
    <T as MapContainer>::Value: Argdata<'d>, 

Create an argdata value representing a map.

Both a pair of lists and a list of pairs are acceptable containers for map(). See container_trait::MapContainer.

Examples:

  • map(&[(key, val), (key, val)])
  • map(&[])
  • let keys = vec![...]; let values = &[...]; map(&(keys, values))