These are chat archives for rust-lang/rust
IntoCowis deprecated. Is it going to be replaced by
Into<Cow<..>>? Why is it not already done for strings (I believe it's not possible for vectors since it has type parameters?)? Any idea when it will be implemented?
Cow<'a, str>implements both
From<String>, so it's already done.
I believe that Into<Cow<[T]>> would be the cow for vector
I don't think there is such an implementation right now...
Cow<'a, str> implements both From<&'a str> and From<String>, so it's already done.
The thing is I'm trying to write a function which can take both
String and return a
Into<T>is blanket implemented for
T: From<U>, so it's always there if
T: From<U>is there.
Ahh... Thanks a lot!
There should be a way to list all implementations (incl. auto-traits, at least the global ones from
std) at one place...