Add From<BTreeSet> and From<HashSet> for Dynamic.

This commit is contained in:
Stephen Chung
2021-06-30 11:08:29 +08:00
parent fc0256aff9
commit f033896fec
3 changed files with 36 additions and 2 deletions

View File

@@ -191,7 +191,7 @@ pub use ast::ScriptFnMetadata;
#[cfg(not(feature = "no_index"))]
pub type Array = Vec<Dynamic>;
/// Hash map of [`Dynamic`] values with [`ImmutableString`] keys.
/// Hash map of [`Dynamic`] values with [`SmartString`](https://crates.io/crates/smartstring) keys.
/// Not available under `no_object`.
#[cfg(not(feature = "no_object"))]
pub type Map = std::collections::BTreeMap<Identifier, Dynamic>;