Point

Trait Point 

Source
pub trait Point:
    Sized
    + 'static
    + Abs
    + Add<Output = Self>
    + AddAssign
    + Bounded
    + ConstZero
    + Copy
    + Div<Self::Scalar, Output = Self, Output = Self>
    + Div
    + GetComponent<Scalar = Self::Scalar>
    + MapComponents<Scalar = Self::Scalar>
    + Mul<Self::Scalar, Output = Self, Output = Self>
    + Mul
    + Ones
    + PartialEq
    + PartialOrd
    + Sub<Output = Self>
    + SubAssign
    + Neg
    + Zero {
    type Scalar: Copy;

    // Required methods
    fn fill(value: Self::Scalar) -> Self;
    fn basis() -> Vec<Self>;
    fn volume(self) -> Self::Scalar;
}
Expand description

A trait that bundles op traits that all PointN<N> (and its components) should have.

Required Associated Types§

Required Methods§

Source

fn fill(value: Self::Scalar) -> Self

Source

fn basis() -> Vec<Self>

Source

fn volume(self) -> Self::Scalar

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§