pub struct DeclCanon {
pub identity: String,
pub canon_hash: String,
pub rename_hash: String,
pub alpha: bool,
}Expand description
One declaration’s canonical identity and content hash.
Fields§
§identity: StringThe normalized header line — merge’s identity key (rule triage,
class Report, use std.vcs).
canon_hash: StringSHA-256/128 over the canonical print (blank lines dropped, lines trailing-trimmed).
rename_hash: StringSHA-256/128 over the canonical print with the header line’s NAME
replaced by _ — the rename-detection key (Decision 3): a deleted
and an added declaration of the same kind whose rename_hashes are
identical are one declaration renamed.
alpha: boolWhether the L3 alpha pass applied (false = degraded to L1+L2 for this declaration; still deterministic per content).
Trait Implementations§
impl Eq for DeclCanon
impl StructuralPartialEq for DeclCanon
Auto Trait Implementations§
impl Freeze for DeclCanon
impl RefUnwindSafe for DeclCanon
impl Send for DeclCanon
impl Sync for DeclCanon
impl Unpin for DeclCanon
impl UnsafeUnpin for DeclCanon
impl UnwindSafe for DeclCanon
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