Skip to main content

DuckMap

Type Alias DuckMap 

Source
pub type DuckMap<K, V> = IndexMap<K, V>;
Expand description

IndexMap<K, V> 的别名,与 DuckList / DuckArray 命名一致。

值是否可空由值类型自己决定:写 IndexMap<K, Option<V>> 就是值可空(键永远不可为空), 没有单独的别名。

An alias for IndexMap<K, V>, named to match DuckList / DuckArray. Value nullability is up to the value type — write IndexMap<K, Option<V>> for nullable values (keys are never NULL); there is no separate alias.

Aliased Type§

pub struct DuckMap<K, V> { /* private fields */ }