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: Debug> Debug for NumericConstant<T>
[src]

Formats the value using the given formatter.

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

Returns a copy of the value. Read more

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

The method called to dereference a value

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

The method called to mutably dereference a value