Struct vrp_core::models::ConstraintViolation
source · [−]pub struct ConstraintViolation {
pub code: ViolationCode,
pub stopped: bool,
}Expand description
Specifies result of hard route constraint check.
Fields
code: ViolationCodeViolation code which is used as marker of specific constraint violated.
stopped: boolTrue if further insertions should not be attempted.
Implementations
Trait Implementations
sourceimpl Clone for ConstraintViolation
impl Clone for ConstraintViolation
sourcefn clone(&self) -> ConstraintViolation
fn clone(&self) -> ConstraintViolation
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for ConstraintViolation
impl Debug for ConstraintViolation
sourceimpl PartialEq<ConstraintViolation> for ConstraintViolation
impl PartialEq<ConstraintViolation> for ConstraintViolation
sourcefn eq(&self, other: &ConstraintViolation) -> bool
fn eq(&self, other: &ConstraintViolation) -> bool
impl Eq for ConstraintViolation
impl StructuralEq for ConstraintViolation
impl StructuralPartialEq for ConstraintViolation
Auto Trait Implementations
impl RefUnwindSafe for ConstraintViolation
impl Send for ConstraintViolation
impl Sync for ConstraintViolation
impl Unpin for ConstraintViolation
impl UnwindSafe for ConstraintViolation
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more