Skip to main content

DestResult

Struct DestResult 

Source
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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.