Skip to main content

RectExt

Trait RectExt 

Source
pub trait RectExt {
    // Required method
    fn snap_to_tile_coordinates(self) -> Self;
}
Expand description

Extension methods for rectangles.

Required Methods§

Source

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.

Implementations on Foreign Types§

Source§

impl RectExt for Rect

Implementors§