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

[Merged by Bors] - create mutable versions of TypeRegistry methods #4484

Closed
wants to merge 1 commit into from

Commits on Apr 15, 2022

  1. create mutable versions of TypeRegistry methods

    # Objective
    
    It is possible to get a mutable reference to a `TypeRegistration` using
    `TypeRegistry::get_mut`. However, none of its other methods
    (`get_mut_with_name`, `get_type_data`, `iter`, etc.) have mutable
    versions.
    
    Besides improving consistency, this change would facilitate use cases
    which involve storing mutable state data in the `TypeRegistry`.
    
    ## Solution
    
    Provides a trivial wrapper around the mutable accessors that the
    `TypeRegistration` already provides. Exactly mirrors the existing
    immutable versions.
    oddfacade committed Apr 15, 2022
    Configuration menu
    Copy the full SHA
    7a2a6c4 View commit details
    Browse the repository at this point in the history