Closed wada314 closed 3 years ago
My super random guess:
std library's impl<T> Borrow<[T]> for Vec<T>
is defined in slice.rs, not in vec/mod.rs. Similar for String
, it's defined in str.rs but not in string.rs.
Maybe forgot to copy these impl
s when forking the implementations from the std library?
Yeah if it wasn't in vec/mod.rs
then I probably missed it. Feel free to open a PR adding it!
Sure I will do it 👍 thank you! 😆
Hello, while I'm using the
Vec
s andString
s of bumpalo, I realized thatstd::borrow::Borrow
trait is not implemented for these types even thoughstd::convert::AsRef
is implemented.I guessed the following state in the
Borrow
's document might be related, but as far as I checked the code the bumpalo's collections fulfill the condition:Does anyone know the reason why it is not implemented? thanks,