pub struct HeuristicScorer;Expand description
A fixed scoring backend with no external dependencies.
Implementations§
Trait Implementations§
Source§impl Clone for HeuristicScorer
impl Clone for HeuristicScorer
Source§fn clone(&self) -> HeuristicScorer
fn clone(&self) -> HeuristicScorer
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 HeuristicScorer
impl Debug for HeuristicScorer
Source§impl Default for HeuristicScorer
impl Default for HeuristicScorer
Source§fn default() -> HeuristicScorer
fn default() -> HeuristicScorer
Returns the “default value” for a type. Read more
Source§impl Scorer for HeuristicScorer
impl Scorer for HeuristicScorer
Source§fn name(&self) -> &str
fn name(&self) -> &str
A stable identifier for the backend (
"heuristic", "llama:qwen2.5-3b", …).Source§fn score(&self, cmd: &ProposedCommand, class: Class, rule: &str) -> ModelOutput
fn score(&self, cmd: &ProposedCommand, class: Class, rule: &str) -> ModelOutput
Explain and score a command.
rule is the Tier-1 rule id that fired, used
for a faithful summary. The score is only consulted for the ambiguous band.Auto Trait Implementations§
impl Freeze for HeuristicScorer
impl RefUnwindSafe for HeuristicScorer
impl Send for HeuristicScorer
impl Sync for HeuristicScorer
impl Unpin for HeuristicScorer
impl UnsafeUnpin for HeuristicScorer
impl UnwindSafe for HeuristicScorer
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