Skip to main content

StopQueuePolicy

Trait StopQueuePolicy 

Source
pub trait StopQueuePolicy {
    // Required method
    fn can_enqueue(
        &self,
        stop: &Stop,
        queue: &Boarding,
        waiter: &Waiter,
    ) -> bool;
}
Expand description

Policy for admitting passengers to a stop queue.

Required Methods§

Source

fn can_enqueue(&self, stop: &Stop, queue: &Boarding, waiter: &Waiter) -> bool

Return true if waiter may join the stop queue.

Implementors§