Struct vrp_pragmatic::validation::ValidationContext[][src]

pub struct ValidationContext<'a> {
    pub problem: &'a Problem,
    pub matrices: Option<&'a Vec<Matrix>>,
    // some fields omitted
}

A validation context which keeps essential information.

Fields

problem: &'a Problem

An original problem.

matrices: Option<&'a Vec<Matrix>>

Routing matrices.

Implementations

impl<'a> ValidationContext<'a>[src]

pub fn new(problem: &'a Problem, matrices: Option<&'a Vec<Matrix>>) -> Self[src]

Creates an instance of ValidationContext.

pub fn validate(&self) -> Result<(), Vec<FormatError>>[src]

Validates problem on set of rules.

Auto Trait Implementations

impl<'a> RefUnwindSafe for ValidationContext<'a>

impl<'a> Send for ValidationContext<'a>

impl<'a> Sync for ValidationContext<'a>

impl<'a> Unpin for ValidationContext<'a>

impl<'a> UnwindSafe for ValidationContext<'a>

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> 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, 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>,