pub struct SymbolChange {
pub anchor: String,
pub name: String,
pub container: String,
pub kind: i32,
pub change: i32,
pub old_semantic_hash: String,
pub new_semantic_hash: String,
}Expand description
One changed symbol, derived from the content-addressed merkle semantic index
(heddle#1067). Parse-free and reformat-stable: change distinguishes a logic
change from a cosmetic one by comparing the symbol’s semantic_hash across states,
so pure reformatting reads as “cosmetic” rather than “logic”. Empty for files
with no attached semantic index (see FileDiff.semantic_index_backed).
Fields§
§anchor: StringFully-qualified address, “Container::name” (e.g. “Parser::parse_array”).
name: StringLeaf symbol name (e.g. “parse_array”).
container: StringContainer path (e.g. “Parser”); empty for a top-level symbol.
kind: i32Closed symbol kind emitted by the repository semantic index (api#32).
change: i32How the symbol changed, from the merkle semantic index.
old_semantic_hash: Stringsemantic_hash before the change (hex); empty when change == “added”.
new_semantic_hash: Stringsemantic_hash after the change (hex); empty when change == “removed”.
Implementations§
Source§impl SymbolChange
impl SymbolChange
Sourcepub fn kind(&self) -> SymbolKind
pub fn kind(&self) -> SymbolKind
Returns the enum value of kind, or the default if the field is set to an invalid enum value.
Sourcepub fn set_kind(&mut self, value: SymbolKind)
pub fn set_kind(&mut self, value: SymbolKind)
Sets kind to the provided enum value.
Sourcepub fn change(&self) -> SymbolChangeKind
pub fn change(&self) -> SymbolChangeKind
Returns the enum value of change, or the default if the field is set to an invalid enum value.
Sourcepub fn set_change(&mut self, value: SymbolChangeKind)
pub fn set_change(&mut self, value: SymbolChangeKind)
Sets change to the provided enum value.
Trait Implementations§
Source§impl Clone for SymbolChange
impl Clone for SymbolChange
Source§fn clone(&self) -> SymbolChange
fn clone(&self) -> SymbolChange
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SymbolChange
impl Debug for SymbolChange
Source§impl Default for SymbolChange
impl Default for SymbolChange
impl Eq for SymbolChange
Source§impl Hash for SymbolChange
impl Hash for SymbolChange
Source§impl Message for SymbolChange
impl Message for SymbolChange
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.