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]
impl<T: Clone> Clone for NumericConstant<T>
[src]
fn clone(&self) -> NumericConstant<T>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
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]
type Target = T
The resulting type after dereferencing.
fn deref(&self) -> &T
[src]
Dereferences the value.