splines::interpolate

Trait Additive

Source
pub trait Additive:
    Copy
    + Add<Self, Output = Self>
    + Sub<Self, Output = Self> { }
Expand description

Set of types that support additions and subtraction.

The Copy trait is also a supertrait as it’s likely to be used everywhere.

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> Additive for T
where T: Copy + Add<Self, Output = Self> + Sub<Self, Output = Self>,