[][src]Struct staticmap::StaticMap

pub struct StaticMap {
    pub width: u32,
    pub height: u32,
    pub padding: (u32, u32),
    pub x_center: f64,
    pub y_center: f64,
    pub url_template: String,
    pub tile_size: u32,
    pub lines: Vec<Line>,
    pub zoom: i32,
}

Fields

width: u32height: u32padding: (u32, u32)x_center: f64y_center: f64url_template: Stringtile_size: u32lines: Vec<Line>zoom: i32

Implementations

impl StaticMap[src]

pub fn add_line(&mut self, line: Line)[src]

pub fn render(&mut self) -> RgbaImage[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.