Skip to main content

COMidpoint

Trait COMidpoint 

Source
pub trait COMidpoint: COPrimitive {
    // Required method
    fn midpoint(self) -> Self::CoordType;
}
Expand description

Representative-position capability for a closed-open interval.

Required Methods§

Source

fn midpoint(self) -> Self::CoordType

Returns the midpoint coordinate, using floor rounding where required.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§