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

Add new method .assign_to() #947

Merged
merged 1 commit into from Mar 18, 2021
Merged

Add new method .assign_to() #947

merged 1 commit into from Mar 18, 2021

Commits on Mar 18, 2021

  1. FEAT: Add new method .assign_to()

    This method does the same job as Zip::from(a).map_assign_into(f, b) with
    cloning as the function f.
    
    Comparison with existing assign:
    
    - Reverse argument order: source, destination
    - The new method doesn't broadcast.
    - The new method is generic over AssignElem (assign into &Cell, &mut
    ManuallyUninit etc).
    bluss committed Mar 18, 2021
    Copy the full SHA
    e870f63 View commit details
    Browse the repository at this point in the history