spade

Trait SpadeNum

Source
pub trait SpadeNum:
    Num
    + PartialOrd
    + Into<f64>
    + From<f32>
    + Copy
    + Signed
    + Debug { }
Expand description

A coordinate type that can be used with a triangulation.

Internally, most calculations are performed after converting the type into a f64. However, changing this to f32 will reduce the required storage space slightly.

This type should usually be either f32 or f64.

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§

Source§

impl<T> SpadeNum for T
where T: Num + PartialOrd + Into<f64> + From<f32> + Copy + Signed + Debug,