pub struct PriorityStrategy;Expand description
Priority strategy — composite scorer for issues and MRs.
v(i) = w_pos·rank⁻¹ + w_act·activity_norm + w_rec·recency_norm
When per-item metadata is unavailable, falls back to ElementCount.
Use assign_priority_values to supply metadata explicitly.
Trait Implementations§
Source§impl TrimStrategy for PriorityStrategy
impl TrimStrategy for PriorityStrategy
Source§fn assign_values(&self, tree: &mut TrimNode)
fn assign_values(&self, tree: &mut TrimNode)
Assign value scores to all nodes in the tree.
Auto Trait Implementations§
impl Freeze for PriorityStrategy
impl RefUnwindSafe for PriorityStrategy
impl Send for PriorityStrategy
impl Sync for PriorityStrategy
impl Unpin for PriorityStrategy
impl UnsafeUnpin for PriorityStrategy
impl UnwindSafe for PriorityStrategy
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