#[non_exhaustive]pub struct RefineWeights {
pub repetition: f32,
pub rhythm: f32,
pub connective: f32,
pub paragraph_opener: f32,
pub list_style_diversity: f32,
pub rst_balance: f32,
pub profile_match: f32,
}Expand description
Composite-scorer weights. Documented defaults are produced via
RefineWeights::default and serve as the v1 hand-tuned baseline.
A future offline tuner (see docs/plans/refine-scorer-tuner.md) will
emit alternative weight sets for projects that have a reason to
deviate.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.repetition: f32§rhythm: f32§connective: f32§paragraph_opener: f32§list_style_diversity: f32§rst_balance: f32§profile_match: f32Trait Implementations§
Source§impl Clone for RefineWeights
impl Clone for RefineWeights
Source§fn clone(&self) -> RefineWeights
fn clone(&self) -> RefineWeights
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 RefineWeights
impl Debug for RefineWeights
Source§impl Default for RefineWeights
impl Default for RefineWeights
impl Copy for RefineWeights
Auto Trait Implementations§
impl Freeze for RefineWeights
impl RefUnwindSafe for RefineWeights
impl Send for RefineWeights
impl Sync for RefineWeights
impl Unpin for RefineWeights
impl UnsafeUnpin for RefineWeights
impl UnwindSafe for RefineWeights
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