pub struct HandlerFingerprint {
pub exact: String,
pub normalized: String,
pub alpha_normalized: String,
pub structural: String,
pub behavior_signature: Vec<String>,
pub source_snippet: String,
pub comparable: bool,
pub trivial: bool,
}Expand description
Comparable representations of a definition handler.
Fields§
§exact: StringExact syntax-tree representation.
normalized: StringRepresentation normalized for superficial syntax differences.
alpha_normalized: StringRepresentation with parameter and local identifiers normalized.
structural: StringControl-flow and call structure with literals normalized.
behavior_signature: Vec<String>Ordered behavioral operations observed in the handler.
source_snippet: StringBounded original source displayed in reports.
comparable: boolWhether a concrete handler body was available for comparison.
trivial: boolWhether the handler lacks enough behavior for duplication analysis.
Trait Implementations§
Source§impl Clone for HandlerFingerprint
impl Clone for HandlerFingerprint
Source§fn clone(&self) -> HandlerFingerprint
fn clone(&self) -> HandlerFingerprint
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 HandlerFingerprint
impl Debug for HandlerFingerprint
Source§impl<'de> Deserialize<'de> for HandlerFingerprint
impl<'de> Deserialize<'de> for HandlerFingerprint
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 HandlerFingerprint
impl PartialEq for HandlerFingerprint
Source§impl Serialize for HandlerFingerprint
impl Serialize for HandlerFingerprint
impl StructuralPartialEq for HandlerFingerprint
Auto Trait Implementations§
impl Freeze for HandlerFingerprint
impl RefUnwindSafe for HandlerFingerprint
impl Send for HandlerFingerprint
impl Sync for HandlerFingerprint
impl Unpin for HandlerFingerprint
impl UnsafeUnpin for HandlerFingerprint
impl UnwindSafe for HandlerFingerprint
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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