pub struct TrafficControlLogic { /* private fields */ }
Implementations§
Source§impl TrafficControlLogic
impl TrafficControlLogic
pub fn new(traffic_area: TrafficArea) -> Self
pub fn start(&mut self, id: i16) -> Result<Coordinate, MovementNotPossible>
pub fn move_to( &mut self, id: i16, target_to_reach: Coordinate, ) -> Result<Coordinate, MovementNotPossible>
pub fn add_to_area(&mut self, id: i16, coordinate: &Coordinate)
pub fn get_traffic_area(&self) -> &TrafficArea
Auto Trait Implementations§
impl Freeze for TrafficControlLogic
impl RefUnwindSafe for TrafficControlLogic
impl Send for TrafficControlLogic
impl Sync for TrafficControlLogic
impl Unpin for TrafficControlLogic
impl UnwindSafe for TrafficControlLogic
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