Skip to main content

TraceClassMemberOutput

Type Alias TraceClassMemberOutput 

Source
pub type TraceClassMemberOutput = ClassMemberTrace;
Expand description

Concrete class / enum / store member trace output (the trace_export fallback when the name is a member rather than a top-level export). See issue #1744.

Aliased Type§

pub struct TraceClassMemberOutput {
    pub file: PathBuf,
    pub member_name: String,
    pub member_kind: String,
    pub owner_export: String,
    pub owner_is_used: bool,
    pub owner_file_reachable: bool,
    pub owner_is_entry_point: bool,
    pub owner_direct_references: Vec<ExportReference>,
    pub owner_re_export_chains: Vec<ReExportChain>,
    pub reason: String,
}

Fields§

§file: PathBuf

The file containing the member.

§member_name: String

The member name being traced.

§member_kind: String

The member kind: class-method, class-property, enum-member, store-member, or namespace-member.

§owner_export: String

The export that declares this member (the class / enum / store name).

§owner_is_used: bool

Whether the owning export is considered used.

§owner_file_reachable: bool

Whether the file is reachable from an entry point.

§owner_is_entry_point: bool

Whether the file is an entry point.

§owner_direct_references: Vec<ExportReference>

Files that reference the owning export directly.

§owner_re_export_chains: Vec<ReExportChain>

Re-export chains through which the owning export is reachable. Populated so a machine consumer can tell “used via a barrel” (empty direct refs but non-empty chains) from “genuinely unreferenced”.

§reason: String

Human-readable reason summary plus the follow-up command to inspect the member finding.