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: ViolationCode
Violation code which is used as marker of specific constraint violated.
stopped: bool
True if further insertions should not be attempted.
Implementations§
Trait Implementations§
source§impl Clone for ConstraintViolation
impl Clone for ConstraintViolation
source§fn clone(&self) -> ConstraintViolation
fn clone(&self) -> ConstraintViolation
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ConstraintViolation
impl Debug for ConstraintViolation
source§impl PartialEq for ConstraintViolation
impl PartialEq for ConstraintViolation
source§fn eq(&self, other: &ConstraintViolation) -> bool
fn eq(&self, other: &ConstraintViolation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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§
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