Trait InterpolationIndex

Source
pub trait InterpolationIndex:
    Sub<Self, Output = Self::Delta>
    + PartialOrd
    + Copy
    + Clone
    + Sized {
    type Delta: Div<Self::Delta, Output = Self::DeltaDiv> + Mul<Self::DeltaDiv, Output = Self::Delta>;
    type DeltaDiv: InterpolationValue;
}
Expand description

Trait describing requirements to be an index of interpolation.

Required Associated Types§

Source

type Delta: Div<Self::Delta, Output = Self::DeltaDiv> + Mul<Self::DeltaDiv, Output = Self::Delta>

Type of the difference of Self - Self

Source

type DeltaDiv: InterpolationValue

Type of Delta / Delta

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.

Implementations on Foreign Types§

Source§

impl InterpolationIndex for f32

Source§

impl InterpolationIndex for f64

Source§

impl InterpolationIndex for i8

Source§

impl InterpolationIndex for i16

Source§

impl InterpolationIndex for i32

Source§

impl InterpolationIndex for i64

Source§

impl InterpolationIndex for i128

Source§

impl InterpolationIndex for isize

Source§

impl InterpolationIndex for u8

Source§

impl InterpolationIndex for u16

Source§

impl InterpolationIndex for u32

Source§

impl InterpolationIndex for u64

Source§

impl InterpolationIndex for u128

Source§

impl InterpolationIndex for usize

Source§

impl InterpolationIndex for Decimal

Source§

impl InterpolationIndex for Date

Source§

impl InterpolationIndex for OffsetDateTime

Source§

impl InterpolationIndex for PrimitiveDateTime

Source§

impl InterpolationIndex for Time

Implementors§