Closed
Description
I'm facing similar problem to this stack overflow question.
Specifically, I made a wrapper class that wraps around an FFI object and creates common functionality like from_ffi
, etc.
pub struct FfiWrapper<T>(T);
impl<T> FfiWrapper<T> {
fn from_ffi(t: T) -> Self { ... }
}
Then, I implemented different methods based on the FFI type:
/// Some docs for type A
type A = FfiWrapper<FfiA>
impl A {
/// Some docs for method_a
fn method_a(self) ...
}
Yet, rust doc generate item and doc for type A = FfiWrapper<FfiA>
, but not for fn method_a
. How can I let the items in the specific implementation show up in docs?