Skip to content

Generate documentation for type aliases/definitions #113727

Closed
@bobogei81123

Description

@bobogei81123

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    S-blockedStatus: Blocked on something else such as an RFC or other implementation work.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions