pub struct ApiCallFeature {
pub names: Vec<Lexeme>,
pub sequence_hash: FeatureHash,
pub multiset_hash: FeatureHash,
}Expand description
The API-call profile of one unit.
This is the one feature where identifier text enters hashes — by design:
external API names are normalization-exempt, matching the Fast engine’s
treatment of external names. The callee of a call is approximated as the
last identifier token strictly before the call’s first ( token, which
covers f(...), obj.method(...) and ns::f(...); calls where no such
identifier exists are skipped.
Fields§
§names: Vec<Lexeme>Callee names in source order.
sequence_hash: FeatureHashHash over the names in source order.
multiset_hash: FeatureHashHash over the sorted names: the order-independent multiset view.
Trait Implementations§
Source§impl Clone for ApiCallFeature
impl Clone for ApiCallFeature
Source§fn clone(&self) -> ApiCallFeature
fn clone(&self) -> ApiCallFeature
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 ApiCallFeature
impl Debug for ApiCallFeature
impl Eq for ApiCallFeature
Source§impl PartialEq for ApiCallFeature
impl PartialEq for ApiCallFeature
impl StructuralPartialEq for ApiCallFeature
Auto Trait Implementations§
impl Freeze for ApiCallFeature
impl RefUnwindSafe for ApiCallFeature
impl Send for ApiCallFeature
impl Sync for ApiCallFeature
impl Unpin for ApiCallFeature
impl UnsafeUnpin for ApiCallFeature
impl UnwindSafe for ApiCallFeature
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.