Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stock collection support for IMapView #2353

Merged
merged 4 commits into from
Feb 24, 2023
Merged

Stock collection support for IMapView #2353

merged 4 commits into from
Feb 24, 2023

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

@kennykerr kennykerr merged commit bb32633 into master Feb 24, 2023
@kennykerr kennykerr deleted the stock-map-view branch February 24, 2023 23:16
@kennykerr kennykerr mentioned this pull request Feb 21, 2025
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