Trait AreaType

Source
pub trait AreaType:
    Num
    + Copy
    + PartialOrd
    + Sized { }
Expand description

Trait for types that can be used as areas. In practice this are integers, floats and possible rational numbers.

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: Num + Copy + PartialOrd> AreaType for T