pub struct ItemInfo {
pub kind: String,
pub fingerprint: u64,
pub signature: String,
pub has_docs: bool,
pub example: bool,
pub spans: Vec<Span>,
}Expand description
What the surface records about one public item — enough to detect any change to it (fingerprint), classify the change (signature), and audit coverage (kind, has_docs).
Fields§
§kind: StringRustdoc item kind (function, struct, module, …).
fingerprint: u64FNV-1a of the span source, comments stripped then whitespace-normalized.
signature: StringDeclaration text, normalized: the span up to the first { or ;,
except that a struct or union keeps its pub fields and an enum its
variants, since those are what a consumer writes against.
has_docs: boolWhether the item carries a /// doc comment.
example: boolWhether the docs carry a fenced Rust example.
spans: Vec<Span>The source ranges whose execution counts as running the item: its own span, plus for a struct, enum, union or trait the spans of the methods of every impl block for it, trait impls included.