pub trait RectExt {
// Required method
fn snap_to_tile_coordinates(self) -> Self;
}Expand description
Extension methods for rectangles.
Required Methods§
Sourcefn snap_to_tile_coordinates(self) -> Self
fn snap_to_tile_coordinates(self) -> Self
Snap the rect to whole tile coordinates.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.