pub enum FeatureKind {
StatementWindow,
Subtree,
Cfg,
ApiCallSequence,
ApiCallMultiset,
}Expand description
The kind of a persisted feature hash.
These name the hash-valued feature families the candidate index keys on.
Unlike a stable identifier, a feature hash is only meaningful within one
FEATURE_SCHEMA_VERSION; the persistence layer stores that version
alongside the hash so hashes from incompatible recipes never merge.
The CharacteristicVector is deliberately absent: it is a count vector,
not a single hash, and is persisted as scalars rather than an index key.
Variants§
StatementWindow
A WindowFeature: a fixed-length run of adjacent statements.
Subtree
A SubtreeFeature: a Merkle hash over an IR subtree.
Cfg
A CfgFeature: the approximate control-flow op sequence.
ApiCallSequence
An ApiCallFeature::sequence_hash: callee names in source order.
ApiCallMultiset
An ApiCallFeature::multiset_hash: the order-independent callee set.
Implementations§
Trait Implementations§
Source§impl Clone for FeatureKind
impl Clone for FeatureKind
Source§fn clone(&self) -> FeatureKind
fn clone(&self) -> FeatureKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for FeatureKind
Source§impl Debug for FeatureKind
impl Debug for FeatureKind
impl Eq for FeatureKind
Source§impl Hash for FeatureKind
impl Hash for FeatureKind
Source§impl Ord for FeatureKind
impl Ord for FeatureKind
Source§fn cmp(&self, other: &FeatureKind) -> Ordering
fn cmp(&self, other: &FeatureKind) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for FeatureKind
impl PartialEq for FeatureKind
Source§impl PartialOrd for FeatureKind
impl PartialOrd for FeatureKind
impl StructuralPartialEq for FeatureKind
Auto Trait Implementations§
impl Freeze for FeatureKind
impl RefUnwindSafe for FeatureKind
impl Send for FeatureKind
impl Sync for FeatureKind
impl Unpin for FeatureKind
impl UnsafeUnpin for FeatureKind
impl UnwindSafe for FeatureKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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
key and return true if they are equal.