pub struct SemanticTaskPriorityGoal {
pub query: u8,
pub target_truth: u8,
pub weight: u32,
}Expand description
One normalized truth-match objective within an ordered task priority level.
The native query result contributes one when it equals target_truth, zero
otherwise; candidate progress subtracts the acquired base’s contribution.
Fields§
§query: u8§target_truth: u8§weight: u32Trait Implementations§
Source§impl Clone for SemanticTaskPriorityGoal
impl Clone for SemanticTaskPriorityGoal
Source§fn clone(&self) -> SemanticTaskPriorityGoal
fn clone(&self) -> SemanticTaskPriorityGoal
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 SemanticTaskPriorityGoal
Source§impl Debug for SemanticTaskPriorityGoal
impl Debug for SemanticTaskPriorityGoal
impl Eq for SemanticTaskPriorityGoal
Source§impl PartialEq for SemanticTaskPriorityGoal
impl PartialEq for SemanticTaskPriorityGoal
impl StructuralPartialEq for SemanticTaskPriorityGoal
Auto Trait Implementations§
impl Freeze for SemanticTaskPriorityGoal
impl RefUnwindSafe for SemanticTaskPriorityGoal
impl Send for SemanticTaskPriorityGoal
impl Sync for SemanticTaskPriorityGoal
impl Unpin for SemanticTaskPriorityGoal
impl UnsafeUnpin for SemanticTaskPriorityGoal
impl UnwindSafe for SemanticTaskPriorityGoal
Blanket Implementations§
impl<T> Allocation for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more