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 whitespace-normalized span source.
signature: StringDeclaration text (span up to the first { or ;), normalized.
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