Skip to main content

Space2d

Trait Space2d 

Source
pub trait Space2d: Sized {
    type Scalar: FixedSqrt;
    type Point: Point2d<Self::Scalar, Self> = Point2D<Self::Scalar, Self>;
    type Vector: Vector2d<Self::Scalar, Self> = Vector2D<Self::Scalar, Self>;
}

Required Associated Types§

Provided Associated Types§

Source

type Point: Point2d<Self::Scalar, Self> = Point2D<Self::Scalar, Self>

Source

type Vector: Vector2d<Self::Scalar, Self> = Vector2D<Self::Scalar, Self>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§