pub struct Unassigned {
pub stop: StopId,
pub code: UnassignedCode,
pub detail: String,
}Expand description
A stop the solver could not place on any route, with an indicative reason.
The reason is a diagnostic, not a proof: it reports the constraint that
blocked the last attempt to place the stop. A stop reported as unassigned may
still be placeable under a different (e.g. larger or differently-ordered)
fleet assignment; conversely the reported code is the dominant blocker the
solver observed, not necessarily the only one.
Fields§
§stop: StopIdThe stop that stayed unassigned.
code: UnassignedCodeMachine-readable cause.
detail: StringHuman-readable explanation of the blocking constraint.
Trait Implementations§
Source§impl Clone for Unassigned
impl Clone for Unassigned
Source§fn clone(&self) -> Unassigned
fn clone(&self) -> Unassigned
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Unassigned
impl Debug for Unassigned
impl Eq for Unassigned
Source§impl PartialEq for Unassigned
impl PartialEq for Unassigned
Source§fn eq(&self, other: &Unassigned) -> bool
fn eq(&self, other: &Unassigned) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Unassigned
Auto Trait Implementations§
impl Freeze for Unassigned
impl RefUnwindSafe for Unassigned
impl Send for Unassigned
impl Sync for Unassigned
impl Unpin for Unassigned
impl UnsafeUnpin for Unassigned
impl UnwindSafe for Unassigned
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