pub struct LengthRelevancyMetric;Expand description
Built-in length-based relevancy metric.
Penalizes very short or very long responses relative to input length.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LengthRelevancyMetric
impl RefUnwindSafe for LengthRelevancyMetric
impl Send for LengthRelevancyMetric
impl Sync for LengthRelevancyMetric
impl Unpin for LengthRelevancyMetric
impl UnsafeUnpin for LengthRelevancyMetric
impl UnwindSafe for LengthRelevancyMetric
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