Skip to main content

Corners

Trait Corners 

Source
pub trait Corners {
    // Required methods
    fn top_left(&self) -> Point;
    fn top_right(&self) -> Point;
    fn bottom_left(&self) -> Point;
    fn bottom_right(&self) -> Point;
}
Expand description

Replacement for methods removed from Euclid

Required Methods§

Source

fn top_left(&self) -> Point

Source

fn top_right(&self) -> Point

Source

fn bottom_left(&self) -> Point

Source

fn bottom_right(&self) -> Point

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§