pub struct ModelScore { /* private fields */ }Expand description
An unnormalized score, comparable only within its scope.
Implementations§
Source§impl ModelScore
impl ModelScore
pub fn new( scope: ScoreScope, candidate: String, score: f64, ) -> Result<Self, KindError>
pub fn candidate(&self) -> &str
pub fn scope(&self) -> &ScoreScope
Sourcepub fn cmp_within(&self, other: &ModelScore) -> Result<Ordering, ScopeMismatch>
pub fn cmp_within(&self, other: &ModelScore) -> Result<Ordering, ScopeMismatch>
Order two scores of the same scope; refused across scopes.
Trait Implementations§
Source§impl Clone for ModelScore
impl Clone for ModelScore
Source§impl Debug for ModelScore
impl Debug for ModelScore
Source§impl PartialEq for ModelScore
impl PartialEq for ModelScore
impl StructuralPartialEq for ModelScore
Auto Trait Implementations§
impl Freeze for ModelScore
impl RefUnwindSafe for ModelScore
impl Send for ModelScore
impl Sync for ModelScore
impl Unpin for ModelScore
impl UnsafeUnpin for ModelScore
impl UnwindSafe for ModelScore
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