pub trait Rotation {
// Required methods
fn inverse(&self) -> Self;
fn rotate_size(&self, size: Size) -> Size;
fn rotate_point(&self, point: Point, bounds: Size) -> Point;
fn rotate_rectangle(&self, rectangle: Rectangle, bounds: Size) -> Rectangle;
}Required Methods§
Sourcefn rotate_size(&self, size: Size) -> Size
fn rotate_size(&self, size: Size) -> Size
Rotates the given size according to this rotation type.
Sourcefn rotate_point(&self, point: Point, bounds: Size) -> Point
fn rotate_point(&self, point: Point, bounds: Size) -> Point
Rotates a point according to this rotation type, within overall bounds of the given size.
Sourcefn rotate_rectangle(&self, rectangle: Rectangle, bounds: Size) -> Rectangle
fn rotate_rectangle(&self, rectangle: Rectangle, bounds: Size) -> Rectangle
Rotates a rectangle according to this rotation type, within overall bounds of the given size.
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.