pub struct Usefulness { /* private fields */ }Expand description
Bounded usefulness score. This is retrieval utility, not proof or truth.
Implementations§
Source§impl Usefulness
impl Usefulness
Sourcepub fn new(score: f32) -> EpistemicResult<Self>
pub fn new(score: f32) -> EpistemicResult<Self>
Construct usefulness when the score is in [0, 1].
Sourcepub fn apply_signal(self, signal: UtilitySignal) -> Self
pub fn apply_signal(self, signal: UtilitySignal) -> Self
Apply a utility signal to usefulness only.
Trait Implementations§
Source§impl Clone for Usefulness
impl Clone for Usefulness
Source§fn clone(&self) -> Usefulness
fn clone(&self) -> Usefulness
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 Usefulness
impl Debug for Usefulness
Source§impl Default for Usefulness
impl Default for Usefulness
Source§impl PartialEq for Usefulness
impl PartialEq for Usefulness
Source§fn eq(&self, other: &Usefulness) -> bool
fn eq(&self, other: &Usefulness) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for Usefulness
impl StructuralPartialEq for Usefulness
Auto Trait Implementations§
impl Freeze for Usefulness
impl RefUnwindSafe for Usefulness
impl Send for Usefulness
impl Sync for Usefulness
impl Unpin for Usefulness
impl UnsafeUnpin for Usefulness
impl UnwindSafe for Usefulness
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