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: PathBufThe file containing the member.
member_name: StringThe member name being traced.
member_kind: StringThe member kind: class-method, class-property, enum-member,
store-member, or namespace-member.
owner_export: StringThe export that declares this member (the class / enum / store name).
owner_is_used: boolWhether the owning export is considered used.
owner_file_reachable: boolWhether the file is reachable from an entry point.
owner_is_entry_point: boolWhether 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: StringHuman-readable reason summary plus the follow-up command to inspect the member finding.