Enum vrp_core::models::problem::Job[][src]

pub enum Job {
    Single(Arc<Single>),
    Multi(Arc<Multi>),
}

Represents a job variant.

Variants

Single(Arc<Single>)

Single job.

Multi(Arc<Multi>)

MultiJob with multiple dependent jobs.

Implementations

impl Job[src]

pub fn as_single(&self) -> Option<&Arc<Single>>[src]

Considers job as Single.

pub fn to_single(&self) -> &Arc<Single>[src]

Considers job as Single. Panics if it is Multi.

pub fn as_multi(&self) -> Option<&Arc<Multi>>[src]

Considers job as Multi.

pub fn to_multi(&self) -> &Arc<Multi>[src]

Considers job as Multi. Panics if it is Multi

pub fn dimens(&self) -> &Dimensions[src]

Returns dimensions collection.

Trait Implementations

impl Clone for Job[src]

impl Eq for Job[src]

impl Hash for Job[src]

impl PartialEq<Job> for Job[src]

Auto Trait Implementations

impl !RefUnwindSafe for Job

impl Send for Job

impl Sync for Job

impl Unpin for Job

impl !UnwindSafe for Job

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CallHasher for T where
    T: Hash + ?Sized

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,