defaultmap icon indicating copy to clipboard operation
defaultmap copied to clipboard

A defaultmap for rust

Results 7 defaultmap issues
Sort by recently updated
recently updated
newest added

I think it would be nice to have a method to return a clone of the default value.

The current implementation is quite inefficient, as it requires an allocation on each call. Criticism is welcome.

I have a use case where it would be convenient to insert the default value on a call to `get()` or on immutable index. For example, suppose you want to...

Updates the requirements on [derive_more](https://github.com/JelteF/derive_more) to permit the latest version. Release notes Sourced from derive_more's releases. 1.0.0-beta.6 API docs Changelog Changelog Sourced from derive_more's changelog. Changelog All notable changes to...

dependencies
rust

Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 3 to 4. Release notes Sourced from codecov/codecov-action's releases. v4.0.0-beta.2 What's Changed not adding -n if empty to do-upload command by @​dana-yaish in codecov/codecov-action#1085 4.0.0-beta.2 by @​thomasrockhu-codecov...

dependencies
github_actions

Bumps [actions/cache](https://github.com/actions/cache) from 3 to 4. Release notes Sourced from actions/cache's releases. v4.0.0 What's Changed Update action to node20 by @​takost in actions/cache#1284 feat: save-always flag by @​to-s in actions/cache#1242...

dependencies
github_actions

The code would be ```rust /// A `HashMap` that returns a default when keys are accessed that are not present. #[derive(Clone, Debug)] #[cfg_attr(feature = "with-serde", derive(serde::Serialize, serde::Deserialize))] #[cfg_attr(feature = "serde-ignore-default",...