pub struct ScoreComponent {
pub raw: f32,
pub weight: f32,
pub contribution: f32,
}Expand description
A weighted score component suitable for memory search --explain.
Fields§
§raw: f32Raw normalized component value after clamping.
weight: f32BUILD_SPEC §14.1 component weight.
contribution: f32Weighted contribution to the final score.
Trait Implementations§
Source§impl Clone for ScoreComponent
impl Clone for ScoreComponent
Source§fn clone(&self) -> ScoreComponent
fn clone(&self) -> ScoreComponent
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 ScoreComponent
impl Debug for ScoreComponent
Source§impl PartialEq for ScoreComponent
impl PartialEq for ScoreComponent
Source§fn eq(&self, other: &ScoreComponent) -> bool
fn eq(&self, other: &ScoreComponent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ScoreComponent
impl StructuralPartialEq for ScoreComponent
Auto Trait Implementations§
impl Freeze for ScoreComponent
impl RefUnwindSafe for ScoreComponent
impl Send for ScoreComponent
impl Sync for ScoreComponent
impl Unpin for ScoreComponent
impl UnsafeUnpin for ScoreComponent
impl UnwindSafe for ScoreComponent
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