Type Alias figment::value::Dict

source ·
pub type Dict = Map<String, Value>;
Expand description

An alias to a Map from String to Values.

Aliased Type§

struct Dict { /* private fields */ }

Trait Implementations§

1.0.0 · source§

impl<K, V, A> Clone for BTreeMap<K, V, A>where K: Clone, V: Clone, A: Allocator + Clone,

source§

fn clone(&self) -> BTreeMap<K, V, A>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
1.0.0 · source§

impl<K, V, A> Debug for BTreeMap<K, V, A>where K: Debug, V: Debug, A: Allocator + Clone,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
1.0.0 · source§

impl<K, V> Default for BTreeMap<K, V, Global>

source§

fn default() -> BTreeMap<K, V, Global>

Creates an empty BTreeMap.

1.56.0 · source§

impl<K, V, const N: usize> From<[(K, V); N]> for BTreeMap<K, V, Global>where K: Ord,

source§

fn from(arr: [(K, V); N]) -> BTreeMap<K, V, Global>

Converts a [(K, V); N] into a BTreeMap<(K, V)>.

use std::collections::BTreeMap;

let map1 = BTreeMap::from([(1, 2), (3, 4)]);
let map2: BTreeMap<_, _> = [(1, 2), (3, 4)].into();
assert_eq!(map1, map2);