-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow using trait objects with
fill
& wrap
.
Since, trait objects needs to be at least behind a reference, a generic impl of `WrapOptions` is added for every reference `&T` where `T` already implements `WrapOptions`. Thus now the `fill` & `wrap` can be feed with any reference including reference to trait objects. Since this new generic impl already provides to pass `Options` by-reference the `WrapOptions` impl for `Options` has be changed from its reference to it's value, removing the need for some double referencing here and there.
- Loading branch information
Showing
2 changed files
with
97 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters