Struct iron_shapes::concepts_impl::I32Coordinates
source · [−]pub struct I32Coordinates;Expand description
Coordinate types based on i32 as main coordinate type.
Trait Implementations
sourceimpl CoordinateBase for I32Coordinates
impl CoordinateBase for I32Coordinates
sourceimpl CoordinateConcept for I32Coordinates
impl CoordinateConcept for I32Coordinates
type ManhattanArea = i64
type ManhattanArea = i64
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 UnsignedArea = f64
type UnsignedArea = f64
Type for unsigned area.
type CoordinateDifference = i32
type CoordinateDifference = i32
Type for difference between coordinates. Typically the same type as Coord when Coord is signed.
type CoordinateDistance = f64
type CoordinateDistance = f64
Type for distances. Typically a floating point type because distances cannot be represented in integers nor rationals.
Auto Trait Implementations
impl RefUnwindSafe for I32Coordinates
impl Send for I32Coordinates
impl Sync for I32Coordinates
impl Unpin for I32Coordinates
impl UnwindSafe for I32Coordinates
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more