Reputation: 1069
I am getting following error while compiling my project:=
= help: the following implementations were found:
<hyper::body::body::Body as std::convert::From<&'static [u8]>>
<hyper::body::body::Body as std::convert::From<&'static str>>
<hyper::body::body::Body as std::convert::From<bytes::bytes::Bytes>>
<hyper::body::body::Body as std::convert::From<std::borrow::Cow<'static, [u8]>>>
and 4 others
This isn't helpfull. I wanna know those 4 other implementations too. How can I tell cargo to show me them ?
Upvotes: 0
Views: 196
Reputation: 5949
I'm not aware of any way to get cargo to show more detail in error messages like that, but for this case you can find the same information in rustdoc. If you want to see the implementations provided by hyper, you can go to the trait implementations for Body on docs.rs and note the From
implementations there. If you also want to include implementations provided by other crates or your own code, you can use cargo doc --open
in your crate to generate and view documentation for your project and its dependencies, and then check the trait implementations for Body
in the same way.
Upvotes: 1