pub struct RegexMatch { /* private fields */ }Expand description
Regex-match evaluator: checks whether the prediction matches the regex.
Implementations§
Trait Implementations§
Source§impl Evaluator for RegexMatch
impl Evaluator for RegexMatch
Source§fn eval<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_input: &'life1 str,
prediction: &'life2 str,
_reference: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<Score, EvalError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn eval<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_input: &'life1 str,
prediction: &'life2 str,
_reference: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<Score, EvalError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Scores a single prediction
Auto Trait Implementations§
impl Freeze for RegexMatch
impl RefUnwindSafe for RegexMatch
impl Send for RegexMatch
impl Sync for RegexMatch
impl Unpin for RegexMatch
impl UnsafeUnpin for RegexMatch
impl UnwindSafe for RegexMatch
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