pub struct Bounds {
pub height: u32,
pub width: u32,
pub x_center: f64,
pub y_center: f64,
pub x_min: i32,
pub x_max: i32,
pub y_min: i32,
pub y_max: i32,
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
Height of the map in pixels.
width: u32
Width of the map in pixels.
x_center: f64
X coordinate of the map’s center.
y_center: f64
Y coordinate of the map’s center.
x_min: i32
Minimum tile on the x axis.
x_max: i32
Maximum tile on the x axis.
y_min: i32
Minimum tile on the y axis.
y_max: i32
Maximum tile on the y axis.
tile_size: u32
Tile size in pixels.
zoom: u8
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more