pub struct ClassEntry {
pub id: String,
pub hunk_ids: Vec<String>,
pub exemplar: String,
pub pure_substitution: bool,
pub defines: Vec<String>,
pub depends_on: Vec<ClassEdge>,
}Expand description
A shape class: hunks whose diff text is identical after normalising away
identifiers and literals on BOTH sides. Ids C0..Cn, numbered by descending
member count. 100% hunk coverage is by construction.
Fields§
§id: String§hunk_ids: Vec<String>§exemplar: StringThe member a reviewer reads to verify the whole class.
pure_substitution: boolTrue iff, after erasing identifiers and literals, the removed and added lines match — a structure-free substitution. Computed, never claimed.
defines: Vec<String>Symbols this class introduces, from SymbolReaders::of_file.
Sorted and deduplicated.
depends_on: Vec<ClassEdge>Classes this class consumes: it references a symbol they define. Sorted
by on. The graph is a fact about the diff, computed before grouping,
so it never depends on how the model merged classes.
Trait Implementations§
Source§impl Clone for ClassEntry
impl Clone for ClassEntry
Source§fn clone(&self) -> ClassEntry
fn clone(&self) -> ClassEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ClassEntry
impl Debug for ClassEntry
Source§impl<'de> Deserialize<'de> for ClassEntry
impl<'de> Deserialize<'de> for ClassEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ClassEntry
impl PartialEq for ClassEntry
Source§impl Serialize for ClassEntry
impl Serialize for ClassEntry
impl StructuralPartialEq for ClassEntry
Auto Trait Implementations§
impl Freeze for ClassEntry
impl RefUnwindSafe for ClassEntry
impl Send for ClassEntry
impl Sync for ClassEntry
impl Unpin for ClassEntry
impl UnsafeUnpin for ClassEntry
impl UnwindSafe for ClassEntry
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