pub struct DiffSemantics {
pub functions_added: Vec<String>,
pub functions_removed: Vec<String>,
pub functions_modified: Vec<String>,
pub metrics_added: Vec<String>,
pub metrics_removed: Vec<String>,
pub imports_added: Vec<String>,
pub imports_removed: Vec<String>,
}Expand description
Semantic information extracted from a diff using Tree-sitter.
Fields§
§functions_added: Vec<String>Function names that were added
functions_removed: Vec<String>Function names that were removed
functions_modified: Vec<String>Function names that were modified (had changes in their body)
metrics_added: Vec<String>Metric names that were added or modified (e.g., counter.inc(), histogram.observe())
metrics_removed: Vec<String>Metric names that were removed
imports_added: Vec<String>Import statements added
imports_removed: Vec<String>Import statements removed
Trait Implementations§
Source§impl Clone for DiffSemantics
impl Clone for DiffSemantics
Source§fn clone(&self) -> DiffSemantics
fn clone(&self) -> DiffSemantics
Returns a duplicate of the value. Read more
1.0.0 · 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 DiffSemantics
impl Debug for DiffSemantics
Source§impl Default for DiffSemantics
impl Default for DiffSemantics
Source§fn default() -> DiffSemantics
fn default() -> DiffSemantics
Returns the “default value” for a type. Read more
Source§impl PartialEq for DiffSemantics
impl PartialEq for DiffSemantics
impl Eq for DiffSemantics
impl StructuralPartialEq for DiffSemantics
Auto Trait Implementations§
impl Freeze for DiffSemantics
impl RefUnwindSafe for DiffSemantics
impl Send for DiffSemantics
impl Sync for DiffSemantics
impl Unpin for DiffSemantics
impl UnsafeUnpin for DiffSemantics
impl UnwindSafe for DiffSemantics
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more