KEMBAR78
Stock collection support for `IMapView` by kennykerr · Pull Request #2353 · microsoft/windows-rs · GitHub
Skip to content

Conversation

@kennykerr
Copy link
Collaborator

@kennykerr kennykerr commented Feb 24, 2023

Building on #2350 and as part of #91, this update adds a stock implementation of IMapView<T>. You can now write the following:

let map = BTreeMap::from([(1, 10), (2, 20), (3, 30)]);
let map: IMapView<i32, u64> = map.try_into()?;

Fixes: #91

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for creating collections

1 participant