Rust cargo build帮助显示所有找到的实现

Rust cargo build帮助显示所有找到的实现,rust,rust-cargo,Rust,Rust Cargo,我在编译项目时遇到以下错误:= = 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>>

我在编译项目时遇到以下错误:=

= 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
=帮助:找到了以下实现:
>

我不知道有什么方法可以让cargo在这样的错误消息中显示更多细节,但是对于这种情况,您可以在rustdoc中找到相同的信息。如果您想查看hyper提供的实现,可以转到并记下那里的
实现中的
。如果您还希望包含由其他板条箱或您自己的代码提供的实现,您可以在板条箱中使用
cargo doc--open
,为您的项目及其依赖项生成和查看文档,然后用同样的方法检查
Body
的trait实现。

我找不到
hyper::Body::Body::Body
的文档。有关于
hyper::body::body
的文档,但我不知道它是否与
hyper::body::body::body
相同,它们是同一类型的。内部
hyper
使用额外嵌套的
body
模块()构建,然后从公共API中的模块重新导出
body