galileo 0.2.1

Cross-platform general purpose map rendering engine
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
/// Messenger used to notify application when the map requires update.
pub trait Messenger: Send + Sync {
    /// Notifies the application that the map requires an update.
    fn request_redraw(&self);
}

/// Empty struct used for generic disambiguation.
pub struct DummyMessenger {}
impl Messenger for DummyMessenger {
    fn request_redraw(&self) {
        // do nothing
    }
}