-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
implement ops::Add for cow<str>? #53
Comments
or give let abc = CowString::from("abc");
let empty = "".to_cow_string();
let abc_empty = abc + empty;
assert!(abc_empty.is_borrowed());
let upper = abc_empty.to_uppercase();
assert_eq!("ABC", upper);
let upper_upper = upper.to_uppercase();
assert!(upper_upper.is_borrowed()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
just like:
std::borrow::Cow
check that Cow<'a, str> implements addition
The text was updated successfully, but these errors were encountered: