pub struct DestinationQueue { /* private fields */ }Expand description
FIFO queue of target stop EntityIds for a single elevator.
Adjacent duplicates are collapsed on push:
push_backis a no-op if the last entry already equals the new stop.push_frontis a no-op if the first entry already equals the new stop.
Games interact with the queue via
Simulation::push_destination,
Simulation::push_destination_front,
and Simulation::clear_destinations.
Implementations§
Trait Implementations§
Source§impl Clone for DestinationQueue
impl Clone for DestinationQueue
Source§fn clone(&self) -> DestinationQueue
fn clone(&self) -> DestinationQueue
Returns a duplicate 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 DestinationQueue
impl Debug for DestinationQueue
Source§impl Default for DestinationQueue
impl Default for DestinationQueue
Source§fn default() -> DestinationQueue
fn default() -> DestinationQueue
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DestinationQueue
impl<'de> Deserialize<'de> for DestinationQueue
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DestinationQueue
impl RefUnwindSafe for DestinationQueue
impl Send for DestinationQueue
impl Sync for DestinationQueue
impl Unpin for DestinationQueue
impl UnsafeUnpin for DestinationQueue
impl UnwindSafe for DestinationQueue
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