Struct grote_opdracht::model::Segment
[−]
[src]
pub struct Segment {
pub orders: Vec<u32>,
pub duration: Time,
pub volume: i32,
}Part of a route, starting and ending at DUMP_LOCATION.
Fields
orders: Vec<u32>
The IDs of the orders scheduled in this segment.
duration: Time
The total duration of the segment. This includes the dumping time.
volume: i32
The total hauled volume at the end of the segment. In a valid solution this should always be
less than or equal to CAPACITY.
Methods
impl Segment[src]
pub fn new() -> Segment[src]
pub fn clear(&mut self)[src]
pub fn insert(&mut self, index: usize, order_id: u32)[src]
pub fn is_empty(&self) -> bool[src]
pub fn len(&self) -> usize[src]
pub fn remove(&mut self, index: usize)[src]
Trait Implementations
impl Clone for Segment[src]
fn clone(&self) -> Segment[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for Segment[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more