AffineSpace

Trait AffineSpace 

Source
pub trait AffineSpace: Sub<Output = Self::Diff> + Sized {
    type Diff: VectorSpace;
}
Expand description

Marker trait for affine spaces, types whose differences are vectors.

Required Associated Types§

Source

type Diff: VectorSpace

The difference type.

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, D> AffineSpace for T
where T: Sub<Output = D>, D: VectorSpace,

Source§

type Diff = D