pub struct Map {
pub settings: MapSettings,
/* private fields */
}Expand description
Struct that contains coordinates to help calculate nearest point in space
Fields§
§settings: MapSettingsImplementations§
source§impl Map
impl Map
pub fn new() -> Self
pub fn add_hashmap_points(&mut self, hash_map: HashMap<usize, MapPoint>)
pub fn set_pos(&mut self, x: f32, y: f32)
pub fn get_pos(self) -> Pos2
pub fn add_labels(&mut self, labels: Vec<MapLabel>)
pub fn add_lines(&mut self, lines: Vec<MapLine>)
pub fn set_zoom(self, value: f32)
pub fn get_zoom(&mut self) -> f32
pub fn notify(&mut self, id_node: usize) -> Result<bool, Error>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Map
impl Send for Map
impl Sync for Map
impl Unpin for Map
impl UnwindSafe for Map
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