Skip to content
Commit 78621b8d authored by Oliver Tale-Yazdi's avatar Oliver Tale-Yazdi Committed by GitHub
Browse files

Remove `Copy` from `Ensure*` traits (#13043)



* Remove Copy from EnsureOp and EnsureOpAssign

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>

* Remove Copy from EnsureFrom and EnsureInto

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>

* Fix default impl

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>

* Reuse assignment code in Ensure trait

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>

* Require Ensure for all BaseArithmetic types

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>

* Fix assign impls

Co-authored-by: default avatarLuis Enrique Muñoz Martín <[email protected]>

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>

* Add tests

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>

* Add success doc tests

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>
parent 841fcaba
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment