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