maplibre_native 0.6.1

Rust bindings to the MapLibre Native map rendering engine
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/// Error returned when MapLibre Native rejects a style mutation.
#[derive(Debug, thiserror::Error)]
#[non_exhaustive]
pub enum StyleError {
    /// MapLibre Native rejected or failed to apply the style mutation.
    #[error("style error: {0}")]
    Native(String),
}

impl From<cxx::Exception> for StyleError {
    fn from(value: cxx::Exception) -> Self {
        Self::Native(value.to_string())
    }
}