-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrote RCow to make it covariant instead of invariant.
Fixing the lifetime issues (WRT RCow) in #75 Changed how `RCow` is represented, requiring uses of the `RCow` type to be updated. Added `RCowVal`, `RCowStr`, and `RCowSlice` type aliases to make `RCow` usable. Updated uses of `RCow` in `abi_stable` to make it compile, the repository will be fixed in a latter commit. Updated RCow tests. Added tests for comparison traits, conversion traits. Added `IntoOwned` trait. Made the comparison traits accept RCows with different type arguments. Added these conversion impls: - `From<&'a RVec<T>> for RCowSlice<'a, T>` - `From<&'a Vec<T>> for RCowSlice<'a, T>` Now the conversion impls between `Cow` and `RCow` are non-trivial, using the new `RCowCompatibleRef` trait to simplify some bounds. Now `RCow` only implements `IntoReprRust`/`AsRef`/`Borrow` for `RCowVal`, `RCowSlice`, and `RCowStr`. Removed `BorrowOwned` trait.
- Loading branch information
1 parent
76c49a5
commit 8e1a54d
Showing
17 changed files
with
577 additions
and
342 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
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
Oops, something went wrong.