Skip to main content

HasCenter

Trait HasCenter 

Source
pub trait HasCenter {
    type Point: IsPoint;

    // Required method
    fn center(&self) -> Self::Point;
}
Expand description

Exposes a geometric center point.

Required Associated Types§

Source

type Point: IsPoint

Point type used to represent the center.

Required Methods§

Source

fn center(&self) -> Self::Point

Returns the center point.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§