pub struct ScoreDescending;Expand description
Rank the whole mixed set by raw score, descending — the reference host’s
documented default (SPEC.md §6.6), and what
super::order_by_value has always done.
It is a real policy with a real cost: the provider that scores most generously wins the top of the prompt and the front of the budget, whatever its evidence is worth. It stays the default because it is the only strategy here that changes nothing for a host that never asked for a ranking policy, and because with a single provider it is simply the right answer — see ADR 0015.
Trait Implementations§
Source§impl Clone for ScoreDescending
impl Clone for ScoreDescending
Source§fn clone(&self) -> ScoreDescending
fn clone(&self) -> ScoreDescending
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 moreimpl Copy for ScoreDescending
Source§impl Debug for ScoreDescending
impl Debug for ScoreDescending
Source§impl Default for ScoreDescending
impl Default for ScoreDescending
Source§fn default() -> ScoreDescending
fn default() -> ScoreDescending
Returns the “default value” for a type. Read more
impl Eq for ScoreDescending
Source§impl PartialEq for ScoreDescending
impl PartialEq for ScoreDescending
Source§impl RankingStrategy for ScoreDescending
impl RankingStrategy for ScoreDescending
Source§fn policy_name(&self) -> &str
fn policy_name(&self) -> &str
The policy’s name, for a host that has to state which cross-provider
ordering it applied. F10 requires a host to document the choice; a
strategy that cannot say what it is makes that impossible, which is why
this has no default implementation.
impl StructuralPartialEq for ScoreDescending
Auto Trait Implementations§
impl Freeze for ScoreDescending
impl RefUnwindSafe for ScoreDescending
impl Send for ScoreDescending
impl Sync for ScoreDescending
impl Unpin for ScoreDescending
impl UnsafeUnpin for ScoreDescending
impl UnwindSafe for ScoreDescending
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