Struct staticmap::Bounds [−][src]
pub struct Bounds { pub height: u32, pub width: u32, pub x_center: f64, pub y_center: f64, pub tile_size: u32, pub zoom: u8, }
Expand description
Helper struct for converting to pixels, and to pass information about map bounds to implementors of Tool.
Fields
height: u32
Expand description
Height of the map in pixels.
width: u32
Expand description
Width of the map in pixels.
x_center: f64
Expand description
X coordinate of the map’s center.
y_center: f64
Expand description
Y coordinate of the map’s center.
tile_size: u32
Expand description
Tile size in pixels.
zoom: u8
Expand description
Map zoom.
Implementations
Auto Trait Implementations
impl RefUnwindSafe for Bounds
impl Send for Bounds
impl Sync for Bounds
impl Unpin for Bounds
impl UnwindSafe for Bounds
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T