#[non_exhaustive]pub struct Decision<A> {
pub id: A,
pub utility: Score,
}Expand description
The outcome of a decision: the chosen id and the utility it won with.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: AThe chosen action’s id.
utility: ScoreThe winning utility score.
Trait Implementations§
impl<A: Eq> Eq for Decision<A>
Source§impl<A: PartialEq> PartialEq for Decision<A>
impl<A: PartialEq> PartialEq for Decision<A>
impl<A> StructuralPartialEq for Decision<A>
Auto Trait Implementations§
impl<A> Freeze for Decision<A>where
A: Freeze,
impl<A> RefUnwindSafe for Decision<A>where
A: RefUnwindSafe,
impl<A> Send for Decision<A>where
A: Send,
impl<A> Sync for Decision<A>where
A: Sync,
impl<A> Unpin for Decision<A>where
A: Unpin,
impl<A> UnsafeUnpin for Decision<A>where
A: UnsafeUnpin,
impl<A> UnwindSafe for Decision<A>where
A: UnwindSafe,
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