pub struct Boosts {
pub learned: f64,
pub recency: f64,
pub branch: f64,
}Expand description
Dynamic, context-dependent boosts computed by crate::search (which owns
the time math and store lookups). Kept out of the pure match scoring so each
signal can be added without threading more parameters.
Fields§
§learned: f64Behavioral signal: results chosen before for this query.
recency: f64Git/filesystem signal: symbols in recently-modified files.
branch: f64Branch signal: symbols in files you’re changing on this branch (or their directory neighbors) — where you’re most likely working.
Trait Implementations§
impl Copy for Boosts
impl StructuralPartialEq for Boosts
Auto Trait Implementations§
impl Freeze for Boosts
impl RefUnwindSafe for Boosts
impl Send for Boosts
impl Sync for Boosts
impl Unpin for Boosts
impl UnsafeUnpin for Boosts
impl UnwindSafe for Boosts
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