pub struct DestResult<'w> {
pub dest_id: usize,
pub labels: &'w [f64],
pub freqs: &'w [f64],
pub a_set: &'w [usize],
pub link_vol: &'w [f64],
pub node_vol: &'w [f64],
}Expand description
DestResult is one destination’s assignment in arena (integer) indexing. Its
slices borrow the Workspace and are reused on the next assign, so copy
out anything that must outlive it (the borrow checker enforces this).
Fields§
§dest_id: usize§labels: &'w [f64]node -> expected time to destination (u_i)
freqs: &'w [f64]node -> combined attractive frequency (f_i); +Inf = no-wait
a_set: &'w [usize]accepted link indices, in acceptance order
link_vol: &'w [f64]link -> assigned volume
node_vol: &'w [f64]node -> accumulated volume
Auto Trait Implementations§
impl<'w> Freeze for DestResult<'w>
impl<'w> RefUnwindSafe for DestResult<'w>
impl<'w> Send for DestResult<'w>
impl<'w> Sync for DestResult<'w>
impl<'w> Unpin for DestResult<'w>
impl<'w> UnsafeUnpin for DestResult<'w>
impl<'w> UnwindSafe for DestResult<'w>
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