mln-rs-style 0.0.21

Part of mln-rs, a MapLibre map renderer written in Rust. Depend on mln-rs instead.
Documentation
1
2
3
4
5
6
7
8
9
use super::{Converter, Convertible, Error, convert};
use crate::types::Position;

impl Converter for Position {
    fn convert(value: &Convertible<'_>, error: &mut Error) -> Option<Position> {
        let spherical = convert::<[f32; 3]>(value, error)?;
        Some(Position::new(spherical))
    }
}