pub struct ItemInfo {
pub kind: String,
pub fingerprint: u64,
pub signature: String,
pub has_docs: bool,
}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.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ItemInfo
impl RefUnwindSafe for ItemInfo
impl Send for ItemInfo
impl Sync for ItemInfo
impl Unpin for ItemInfo
impl UnsafeUnpin for ItemInfo
impl UnwindSafe for ItemInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more