pub struct I32Coordinates;
Expand description

Coordinate types based on i32 as main coordinate type.

Trait Implementations

Base coordinate type used for x and y coordinates.

Type used for area. This is typically a floating point number or a rational number.

Type used for area which can be expressed without fractions. The datatype usually has a bigger range than Coord to avoid overflows during multiplications. For example when using i32 as Coord, a i64 is recommended as area type. Read more

Type for unsigned area.

Type for difference between coordinates. Typically the same type as Coord when Coord is signed.

Type for distances. Typically a floating point type because distances cannot be represented in integers nor rationals.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.