Struct numeric_array::NumericConstant [] [src]

pub struct NumericConstant<T>(pub T);

This is required to allow NumericArray to be operated on by both other NumericArray instances and constants, with generic types, because some type U supercedes NumericArray<U, N>

As a result, constants must be wrapped in this totally transparent wrapper type to differentiate the types to Rust.

Trait Implementations

impl<T, U: Clone, N: ArrayLength<T>> Pow<NumericConstant<U>> for NumericArray<T, N> where
    T: Pow<U>,
    N: ArrayLength<<T as Pow<U>>::Output>, 
[src]

The result after applying the operator.

[src]

Returns self to the power rhs. Read more

impl<'a, T: Clone, U: Clone, N: ArrayLength<T>> Pow<NumericConstant<U>> for &'a NumericArray<T, N> where
    T: Pow<U>,
    N: ArrayLength<<T as Pow<U>>::Output>, 
[src]

The result after applying the operator.

[src]

Returns self to the power rhs. Read more

impl<T, U: Clone, N: ArrayLength<T>> Add<NumericConstant<U>> for NumericArray<T, N> where
    T: Add<U>,
    N: ArrayLength<<T as Add<U>>::Output>, 
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl<'a, T: Clone, U: Clone, N: ArrayLength<T>> Add<NumericConstant<U>> for &'a NumericArray<T, N> where
    T: Add<U>,
    N: ArrayLength<<T as Add<U>>::Output>, 
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl<T, U: Clone, N: ArrayLength<T>> Sub<NumericConstant<U>> for NumericArray<T, N> where
    T: Sub<U>,
    N: ArrayLength<<T as Sub<U>>::Output>, 
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl<'a, T: Clone, U: Clone, N: ArrayLength<T>> Sub<NumericConstant<U>> for &'a NumericArray<T, N> where
    T: Sub<U>,
    N: ArrayLength<<T as Sub<U>>::Output>, 
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl<T, U: Clone, N: ArrayLength<T>> Mul<NumericConstant<U>> for NumericArray<T, N> where
    T: Mul<U>,
    N: ArrayLength<<T as Mul<U>>::Output>, 
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl<'a, T: Clone, U: Clone, N: ArrayLength<T>> Mul<NumericConstant<U>> for &'a NumericArray<T, N> where
    T: Mul<U>,
    N: ArrayLength<<T as Mul<U>>::Output>, 
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl<T, U: Clone, N: ArrayLength<T>> Div<NumericConstant<U>> for NumericArray<T, N> where
    T: Div<U>,
    N: ArrayLength<<T as Div<U>>::Output>, 
[src]

The resulting type after applying the / operator.

[src]

Performs the / operation.

impl<'a, T: Clone, U: Clone, N: ArrayLength<T>> Div<NumericConstant<U>> for &'a NumericArray<T, N> where
    T: Div<U>,
    N: ArrayLength<<T as Div<U>>::Output>, 
[src]

The resulting type after applying the / operator.

[src]

Performs the / operation.

impl<T, U: Clone, N: ArrayLength<T>> Rem<NumericConstant<U>> for NumericArray<T, N> where
    T: Rem<U>,
    N: ArrayLength<<T as Rem<U>>::Output>, 
[src]

The resulting type after applying the % operator.

[src]

Performs the % operation.

impl<'a, T: Clone, U: Clone, N: ArrayLength<T>> Rem<NumericConstant<U>> for &'a NumericArray<T, N> where
    T: Rem<U>,
    N: ArrayLength<<T as Rem<U>>::Output>, 
[src]

The resulting type after applying the % operator.

[src]

Performs the % operation.

impl<T, U: Clone, N: ArrayLength<T>> BitAnd<NumericConstant<U>> for NumericArray<T, N> where
    T: BitAnd<U>,
    N: ArrayLength<<T as BitAnd<U>>::Output>, 
[src]

The resulting type after applying the & operator.

[src]

Performs the & operation.

impl<'a, T: Clone, U: Clone, N: ArrayLength<T>> BitAnd<NumericConstant<U>> for &'a NumericArray<T, N> where
    T: BitAnd<U>,
    N: ArrayLength<<T as BitAnd<U>>::Output>, 
[src]

The resulting type after applying the & operator.

[src]

Performs the & operation.

impl<T, U: Clone, N: ArrayLength<T>> BitOr<NumericConstant<U>> for NumericArray<T, N> where
    T: BitOr<U>,
    N: ArrayLength<<T as BitOr<U>>::Output>, 
[src]

The resulting type after applying the | operator.

[src]

Performs the | operation.

impl<'a, T: Clone, U: Clone, N: ArrayLength<T>> BitOr<NumericConstant<U>> for &'a NumericArray<T, N> where
    T: BitOr<U>,
    N: ArrayLength<<T as BitOr<U>>::Output>, 
[src]

The resulting type after applying the | operator.

[src]

Performs the | operation.

impl<T, U: Clone, N: ArrayLength<T>> BitXor<NumericConstant<U>> for NumericArray<T, N> where
    T: BitXor<U>,
    N: ArrayLength<<T as BitXor<U>>::Output>, 
[src]

The resulting type after applying the ^ operator.

[src]

Performs the ^ operation.

impl<'a, T: Clone, U: Clone, N: ArrayLength<T>> BitXor<NumericConstant<U>> for &'a NumericArray<T, N> where
    T: BitXor<U>,
    N: ArrayLength<<T as BitXor<U>>::Output>, 
[src]

The resulting type after applying the ^ operator.

[src]

Performs the ^ operation.

impl<T, U: Clone, N: ArrayLength<T>> Shr<NumericConstant<U>> for NumericArray<T, N> where
    T: Shr<U>,
    N: ArrayLength<<T as Shr<U>>::Output>, 
[src]

The resulting type after applying the >> operator.

[src]

Performs the >> operation.

impl<'a, T: Clone, U: Clone, N: ArrayLength<T>> Shr<NumericConstant<U>> for &'a NumericArray<T, N> where
    T: Shr<U>,
    N: ArrayLength<<T as Shr<U>>::Output>, 
[src]

The resulting type after applying the >> operator.

[src]

Performs the >> operation.

impl<T, U: Clone, N: ArrayLength<T>> Shl<NumericConstant<U>> for NumericArray<T, N> where
    T: Shl<U>,
    N: ArrayLength<<T as Shl<U>>::Output>, 
[src]

The resulting type after applying the << operator.

[src]

Performs the << operation.

impl<'a, T: Clone, U: Clone, N: ArrayLength<T>> Shl<NumericConstant<U>> for &'a NumericArray<T, N> where
    T: Shl<U>,
    N: ArrayLength<<T as Shl<U>>::Output>, 
[src]

The resulting type after applying the << operator.

[src]

Performs the << operation.

impl<T, U: Clone, N: ArrayLength<T>> AddAssign<NumericConstant<U>> for NumericArray<T, N> where
    T: AddAssign<U>, 
[src]

[src]

Performs the += operation.

impl<T, U: Clone, N: ArrayLength<T>> SubAssign<NumericConstant<U>> for NumericArray<T, N> where
    T: SubAssign<U>, 
[src]

[src]

Performs the -= operation.

impl<T, U: Clone, N: ArrayLength<T>> MulAssign<NumericConstant<U>> for NumericArray<T, N> where
    T: MulAssign<U>, 
[src]

[src]

Performs the *= operation.

impl<T, U: Clone, N: ArrayLength<T>> DivAssign<NumericConstant<U>> for NumericArray<T, N> where
    T: DivAssign<U>, 
[src]

[src]

Performs the /= operation.

impl<T, U: Clone, N: ArrayLength<T>> RemAssign<NumericConstant<U>> for NumericArray<T, N> where
    T: RemAssign<U>, 
[src]

[src]

Performs the %= operation.

impl<T, U: Clone, N: ArrayLength<T>> BitAndAssign<NumericConstant<U>> for NumericArray<T, N> where
    T: BitAndAssign<U>, 
[src]

[src]

Performs the &= operation.

impl<T, U: Clone, N: ArrayLength<T>> BitOrAssign<NumericConstant<U>> for NumericArray<T, N> where
    T: BitOrAssign<U>, 
[src]

[src]

Performs the |= operation.

impl<T, U: Clone, N: ArrayLength<T>> BitXorAssign<NumericConstant<U>> for NumericArray<T, N> where
    T: BitXorAssign<U>, 
[src]

[src]

Performs the ^= operation.

impl<T, U: Clone, N: ArrayLength<T>> ShrAssign<NumericConstant<U>> for NumericArray<T, N> where
    T: ShrAssign<U>, 
[src]

[src]

Performs the >>= operation.

impl<T, U: Clone, N: ArrayLength<T>> ShlAssign<NumericConstant<U>> for NumericArray<T, N> where
    T: ShlAssign<U>, 
[src]

[src]

Performs the <<= operation.

impl<T: Debug> Debug for NumericConstant<T>
[src]

[src]

Formats the value using the given formatter. Read more

impl<T: Clone> Clone for NumericConstant<T>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T: Copy> Copy for NumericConstant<T>
[src]

impl<T> Deref for NumericConstant<T>
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.

impl<T> DerefMut for NumericConstant<T>
[src]

[src]

Mutably dereferences the value.

Auto Trait Implementations

impl<T> Send for NumericConstant<T> where
    T: Send

impl<T> Sync for NumericConstant<T> where
    T: Sync