pub struct TrafficArea { /* private fields */ }
Implementations§
Source§impl TrafficArea
impl TrafficArea
pub fn new(max_per_node: usize, max_size_x: usize, max_size_y: usize) -> Self
pub fn remove( &mut self, id: i16, from: &Coordinate, ) -> Result<(), MovementNotPossible>
pub fn place( &mut self, id: i16, to: &Coordinate, ) -> Result<(), MovementNotPossible>
pub fn get_position(&self, id: i16) -> Option<Coordinate>
pub fn is_free(&self, position: &Coordinate) -> bool
pub fn get_area(&self) -> &Vec<Vec<Vec<i16>>>
pub fn set_area(&mut self, area: Vec<Vec<Vec<i16>>>)
pub fn clear(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TrafficArea
impl RefUnwindSafe for TrafficArea
impl Send for TrafficArea
impl Sync for TrafficArea
impl Unpin for TrafficArea
impl UnwindSafe for TrafficArea
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