pub struct Insertion {
pub position: usize,
pub gain: u64,
}Expand description
Where a task goes in an agent’s path, and what it adds there.
Fields§
§position: usizeIndex in the path at which the task is inserted; at most the path’s length, which appends it. Tasks at this index and after shift back by one.
gain: u64The marginal gain of the insertion, as Valuation::marginal_score reports it.
Trait Implementations§
impl Copy for Insertion
impl Eq for Insertion
impl StructuralPartialEq for Insertion
Auto Trait Implementations§
impl Forget for Insertion
impl Freeze for Insertion
impl Move for Insertion
impl RefUnwindSafe for Insertion
impl Send for Insertion
impl Sync for Insertion
impl Unpin for Insertion
impl UnsafeUnpin for Insertion
impl UnwindSafe for Insertion
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