pub struct SignatureMatcher;Expand description
Matches patterns based on function signature similarity.
Implementations§
Source§impl SignatureMatcher
impl SignatureMatcher
pub fn new() -> Self
pub fn find_matches( &self, signature: &FunctionSignature, patterns: &[&Pattern], _context: &MatchContext, limit: usize, ) -> EvolveResult<Vec<MatchResult>>
pub fn score_match( &self, pattern: &Pattern, signature: &FunctionSignature, ) -> f64
Trait Implementations§
Source§impl Debug for SignatureMatcher
impl Debug for SignatureMatcher
Source§impl Default for SignatureMatcher
impl Default for SignatureMatcher
Source§fn default() -> SignatureMatcher
fn default() -> SignatureMatcher
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SignatureMatcher
impl RefUnwindSafe for SignatureMatcher
impl Send for SignatureMatcher
impl Sync for SignatureMatcher
impl Unpin for SignatureMatcher
impl UnsafeUnpin for SignatureMatcher
impl UnwindSafe for SignatureMatcher
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