#[repr(transparent)]pub struct NumericConstant<T>(pub T);
Expand description
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.
Tuple Fields§
§0: T
Trait Implementations§
Source§impl<'a, T: Clone, U, N: ArrayLength> Add<&'a NumericArray<T, N>> for NumericConstant<U>
impl<'a, T: Clone, U, N: ArrayLength> Add<&'a NumericArray<T, N>> for NumericConstant<U>
Source§impl<T, U, N: ArrayLength> Add<NumericArray<T, N>> for NumericConstant<U>
impl<T, U, N: ArrayLength> Add<NumericArray<T, N>> for NumericConstant<U>
Source§impl<'a, T, U: Clone, N: ArrayLength> Add<NumericConstant<U>> for &'a NumericArray<T, N>
impl<'a, T, U: Clone, N: ArrayLength> Add<NumericConstant<U>> for &'a NumericArray<T, N>
Source§impl<T, U: Clone, N: ArrayLength> Add<NumericConstant<U>> for NumericArray<T, N>where
T: Add<U>,
impl<T, U: Clone, N: ArrayLength> Add<NumericConstant<U>> for NumericArray<T, N>where
T: Add<U>,
Source§impl<T, U: Clone, N: ArrayLength> AddAssign<NumericConstant<U>> for NumericArray<T, N>where
T: AddAssign<U>,
impl<T, U: Clone, N: ArrayLength> AddAssign<NumericConstant<U>> for NumericArray<T, N>where
T: AddAssign<U>,
Source§fn add_assign(&mut self, rhs: NumericConstant<U>)
fn add_assign(&mut self, rhs: NumericConstant<U>)
Performs the
+=
operation. Read moreSource§impl<'a, T: Clone, U, N: ArrayLength> BitAnd<&'a NumericArray<T, N>> for NumericConstant<U>
impl<'a, T: Clone, U, N: ArrayLength> BitAnd<&'a NumericArray<T, N>> for NumericConstant<U>
Source§impl<T, U, N: ArrayLength> BitAnd<NumericArray<T, N>> for NumericConstant<U>
impl<T, U, N: ArrayLength> BitAnd<NumericArray<T, N>> for NumericConstant<U>
Source§impl<'a, T, U: Clone, N: ArrayLength> BitAnd<NumericConstant<U>> for &'a NumericArray<T, N>
impl<'a, T, U: Clone, N: ArrayLength> BitAnd<NumericConstant<U>> for &'a NumericArray<T, N>
Source§impl<T, U: Clone, N: ArrayLength> BitAnd<NumericConstant<U>> for NumericArray<T, N>where
T: BitAnd<U>,
impl<T, U: Clone, N: ArrayLength> BitAnd<NumericConstant<U>> for NumericArray<T, N>where
T: BitAnd<U>,
Source§impl<T, U: Clone, N: ArrayLength> BitAndAssign<NumericConstant<U>> for NumericArray<T, N>where
T: BitAndAssign<U>,
impl<T, U: Clone, N: ArrayLength> BitAndAssign<NumericConstant<U>> for NumericArray<T, N>where
T: BitAndAssign<U>,
Source§fn bitand_assign(&mut self, rhs: NumericConstant<U>)
fn bitand_assign(&mut self, rhs: NumericConstant<U>)
Performs the
&=
operation. Read moreSource§impl<'a, T: Clone, U, N: ArrayLength> BitOr<&'a NumericArray<T, N>> for NumericConstant<U>
impl<'a, T: Clone, U, N: ArrayLength> BitOr<&'a NumericArray<T, N>> for NumericConstant<U>
Source§impl<T, U, N: ArrayLength> BitOr<NumericArray<T, N>> for NumericConstant<U>
impl<T, U, N: ArrayLength> BitOr<NumericArray<T, N>> for NumericConstant<U>
Source§impl<'a, T, U: Clone, N: ArrayLength> BitOr<NumericConstant<U>> for &'a NumericArray<T, N>
impl<'a, T, U: Clone, N: ArrayLength> BitOr<NumericConstant<U>> for &'a NumericArray<T, N>
Source§impl<T, U: Clone, N: ArrayLength> BitOr<NumericConstant<U>> for NumericArray<T, N>where
T: BitOr<U>,
impl<T, U: Clone, N: ArrayLength> BitOr<NumericConstant<U>> for NumericArray<T, N>where
T: BitOr<U>,
Source§impl<T, U: Clone, N: ArrayLength> BitOrAssign<NumericConstant<U>> for NumericArray<T, N>where
T: BitOrAssign<U>,
impl<T, U: Clone, N: ArrayLength> BitOrAssign<NumericConstant<U>> for NumericArray<T, N>where
T: BitOrAssign<U>,
Source§fn bitor_assign(&mut self, rhs: NumericConstant<U>)
fn bitor_assign(&mut self, rhs: NumericConstant<U>)
Performs the
|=
operation. Read moreSource§impl<'a, T: Clone, U, N: ArrayLength> BitXor<&'a NumericArray<T, N>> for NumericConstant<U>
impl<'a, T: Clone, U, N: ArrayLength> BitXor<&'a NumericArray<T, N>> for NumericConstant<U>
Source§impl<T, U, N: ArrayLength> BitXor<NumericArray<T, N>> for NumericConstant<U>
impl<T, U, N: ArrayLength> BitXor<NumericArray<T, N>> for NumericConstant<U>
Source§impl<'a, T, U: Clone, N: ArrayLength> BitXor<NumericConstant<U>> for &'a NumericArray<T, N>
impl<'a, T, U: Clone, N: ArrayLength> BitXor<NumericConstant<U>> for &'a NumericArray<T, N>
Source§impl<T, U: Clone, N: ArrayLength> BitXor<NumericConstant<U>> for NumericArray<T, N>where
T: BitXor<U>,
impl<T, U: Clone, N: ArrayLength> BitXor<NumericConstant<U>> for NumericArray<T, N>where
T: BitXor<U>,
Source§impl<T, U: Clone, N: ArrayLength> BitXorAssign<NumericConstant<U>> for NumericArray<T, N>where
T: BitXorAssign<U>,
impl<T, U: Clone, N: ArrayLength> BitXorAssign<NumericConstant<U>> for NumericArray<T, N>where
T: BitXorAssign<U>,
Source§fn bitxor_assign(&mut self, rhs: NumericConstant<U>)
fn bitxor_assign(&mut self, rhs: NumericConstant<U>)
Performs the
^=
operation. Read moreSource§impl<T: Clone> Clone for NumericConstant<T>
impl<T: Clone> Clone for NumericConstant<T>
Source§fn clone(&self) -> NumericConstant<T>
fn clone(&self) -> NumericConstant<T>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T: Debug> Debug for NumericConstant<T>
impl<T: Debug> Debug for NumericConstant<T>
Source§impl<T> Deref for NumericConstant<T>
impl<T> Deref for NumericConstant<T>
Source§impl<T> DerefMut for NumericConstant<T>
impl<T> DerefMut for NumericConstant<T>
Source§impl<'a, T: Clone, U, N: ArrayLength> Div<&'a NumericArray<T, N>> for NumericConstant<U>
impl<'a, T: Clone, U, N: ArrayLength> Div<&'a NumericArray<T, N>> for NumericConstant<U>
Source§impl<T, U, N: ArrayLength> Div<NumericArray<T, N>> for NumericConstant<U>
impl<T, U, N: ArrayLength> Div<NumericArray<T, N>> for NumericConstant<U>
Source§impl<'a, T, U: Clone, N: ArrayLength> Div<NumericConstant<U>> for &'a NumericArray<T, N>
impl<'a, T, U: Clone, N: ArrayLength> Div<NumericConstant<U>> for &'a NumericArray<T, N>
Source§impl<T, U: Clone, N: ArrayLength> Div<NumericConstant<U>> for NumericArray<T, N>where
T: Div<U>,
impl<T, U: Clone, N: ArrayLength> Div<NumericConstant<U>> for NumericArray<T, N>where
T: Div<U>,
Source§impl<T, U: Clone, N: ArrayLength> DivAssign<NumericConstant<U>> for NumericArray<T, N>where
T: DivAssign<U>,
impl<T, U: Clone, N: ArrayLength> DivAssign<NumericConstant<U>> for NumericArray<T, N>where
T: DivAssign<U>,
Source§fn div_assign(&mut self, rhs: NumericConstant<U>)
fn div_assign(&mut self, rhs: NumericConstant<U>)
Performs the
/=
operation. Read moreSource§impl<'a, T: Clone, U, N: ArrayLength> Mul<&'a NumericArray<T, N>> for NumericConstant<U>
impl<'a, T: Clone, U, N: ArrayLength> Mul<&'a NumericArray<T, N>> for NumericConstant<U>
Source§impl<T, U, N: ArrayLength> Mul<NumericArray<T, N>> for NumericConstant<U>
impl<T, U, N: ArrayLength> Mul<NumericArray<T, N>> for NumericConstant<U>
Source§impl<'a, T, U: Clone, N: ArrayLength> Mul<NumericConstant<U>> for &'a NumericArray<T, N>
impl<'a, T, U: Clone, N: ArrayLength> Mul<NumericConstant<U>> for &'a NumericArray<T, N>
Source§impl<T, U: Clone, N: ArrayLength> Mul<NumericConstant<U>> for NumericArray<T, N>where
T: Mul<U>,
impl<T, U: Clone, N: ArrayLength> Mul<NumericConstant<U>> for NumericArray<T, N>where
T: Mul<U>,
Source§impl<T, U: Clone, N: ArrayLength> MulAssign<NumericConstant<U>> for NumericArray<T, N>where
T: MulAssign<U>,
impl<T, U: Clone, N: ArrayLength> MulAssign<NumericConstant<U>> for NumericArray<T, N>where
T: MulAssign<U>,
Source§fn mul_assign(&mut self, rhs: NumericConstant<U>)
fn mul_assign(&mut self, rhs: NumericConstant<U>)
Performs the
*=
operation. Read moreSource§impl<'a, T: Clone, U, N: ArrayLength> Pow<&'a NumericArray<T, N>> for NumericConstant<U>
impl<'a, T: Clone, U, N: ArrayLength> Pow<&'a NumericArray<T, N>> for NumericConstant<U>
Source§impl<T, U, N: ArrayLength> Pow<NumericArray<T, N>> for NumericConstant<U>
impl<T, U, N: ArrayLength> Pow<NumericArray<T, N>> for NumericConstant<U>
Source§impl<'a, T, U: Clone, N: ArrayLength> Pow<NumericConstant<U>> for &'a NumericArray<T, N>
impl<'a, T, U: Clone, N: ArrayLength> Pow<NumericConstant<U>> for &'a NumericArray<T, N>
Source§impl<T, U: Clone, N: ArrayLength> Pow<NumericConstant<U>> for NumericArray<T, N>where
T: Pow<U>,
impl<T, U: Clone, N: ArrayLength> Pow<NumericConstant<U>> for NumericArray<T, N>where
T: Pow<U>,
Source§impl<'a, T: Clone, U, N: ArrayLength> Rem<&'a NumericArray<T, N>> for NumericConstant<U>
impl<'a, T: Clone, U, N: ArrayLength> Rem<&'a NumericArray<T, N>> for NumericConstant<U>
Source§impl<T, U, N: ArrayLength> Rem<NumericArray<T, N>> for NumericConstant<U>
impl<T, U, N: ArrayLength> Rem<NumericArray<T, N>> for NumericConstant<U>
Source§impl<'a, T, U: Clone, N: ArrayLength> Rem<NumericConstant<U>> for &'a NumericArray<T, N>
impl<'a, T, U: Clone, N: ArrayLength> Rem<NumericConstant<U>> for &'a NumericArray<T, N>
Source§impl<T, U: Clone, N: ArrayLength> Rem<NumericConstant<U>> for NumericArray<T, N>where
T: Rem<U>,
impl<T, U: Clone, N: ArrayLength> Rem<NumericConstant<U>> for NumericArray<T, N>where
T: Rem<U>,
Source§impl<T, U: Clone, N: ArrayLength> RemAssign<NumericConstant<U>> for NumericArray<T, N>where
T: RemAssign<U>,
impl<T, U: Clone, N: ArrayLength> RemAssign<NumericConstant<U>> for NumericArray<T, N>where
T: RemAssign<U>,
Source§fn rem_assign(&mut self, rhs: NumericConstant<U>)
fn rem_assign(&mut self, rhs: NumericConstant<U>)
Performs the
%=
operation. Read moreSource§impl<'a, T: Clone, U, N: ArrayLength> Shl<&'a NumericArray<T, N>> for NumericConstant<U>
impl<'a, T: Clone, U, N: ArrayLength> Shl<&'a NumericArray<T, N>> for NumericConstant<U>
Source§impl<T, U, N: ArrayLength> Shl<NumericArray<T, N>> for NumericConstant<U>
impl<T, U, N: ArrayLength> Shl<NumericArray<T, N>> for NumericConstant<U>
Source§impl<'a, T, U: Clone, N: ArrayLength> Shl<NumericConstant<U>> for &'a NumericArray<T, N>
impl<'a, T, U: Clone, N: ArrayLength> Shl<NumericConstant<U>> for &'a NumericArray<T, N>
Source§impl<T, U: Clone, N: ArrayLength> Shl<NumericConstant<U>> for NumericArray<T, N>where
T: Shl<U>,
impl<T, U: Clone, N: ArrayLength> Shl<NumericConstant<U>> for NumericArray<T, N>where
T: Shl<U>,
Source§impl<T, U: Clone, N: ArrayLength> ShlAssign<NumericConstant<U>> for NumericArray<T, N>where
T: ShlAssign<U>,
impl<T, U: Clone, N: ArrayLength> ShlAssign<NumericConstant<U>> for NumericArray<T, N>where
T: ShlAssign<U>,
Source§fn shl_assign(&mut self, rhs: NumericConstant<U>)
fn shl_assign(&mut self, rhs: NumericConstant<U>)
Performs the
<<=
operation. Read moreSource§impl<'a, T: Clone, U, N: ArrayLength> Shr<&'a NumericArray<T, N>> for NumericConstant<U>
impl<'a, T: Clone, U, N: ArrayLength> Shr<&'a NumericArray<T, N>> for NumericConstant<U>
Source§impl<T, U, N: ArrayLength> Shr<NumericArray<T, N>> for NumericConstant<U>
impl<T, U, N: ArrayLength> Shr<NumericArray<T, N>> for NumericConstant<U>
Source§impl<'a, T, U: Clone, N: ArrayLength> Shr<NumericConstant<U>> for &'a NumericArray<T, N>
impl<'a, T, U: Clone, N: ArrayLength> Shr<NumericConstant<U>> for &'a NumericArray<T, N>
Source§impl<T, U: Clone, N: ArrayLength> Shr<NumericConstant<U>> for NumericArray<T, N>where
T: Shr<U>,
impl<T, U: Clone, N: ArrayLength> Shr<NumericConstant<U>> for NumericArray<T, N>where
T: Shr<U>,
Source§impl<T, U: Clone, N: ArrayLength> ShrAssign<NumericConstant<U>> for NumericArray<T, N>where
T: ShrAssign<U>,
impl<T, U: Clone, N: ArrayLength> ShrAssign<NumericConstant<U>> for NumericArray<T, N>where
T: ShrAssign<U>,
Source§fn shr_assign(&mut self, rhs: NumericConstant<U>)
fn shr_assign(&mut self, rhs: NumericConstant<U>)
Performs the
>>=
operation. Read moreSource§impl<'a, T: Clone, U, N: ArrayLength> Sub<&'a NumericArray<T, N>> for NumericConstant<U>
impl<'a, T: Clone, U, N: ArrayLength> Sub<&'a NumericArray<T, N>> for NumericConstant<U>
Source§impl<T, U, N: ArrayLength> Sub<NumericArray<T, N>> for NumericConstant<U>
impl<T, U, N: ArrayLength> Sub<NumericArray<T, N>> for NumericConstant<U>
Source§impl<'a, T, U: Clone, N: ArrayLength> Sub<NumericConstant<U>> for &'a NumericArray<T, N>
impl<'a, T, U: Clone, N: ArrayLength> Sub<NumericConstant<U>> for &'a NumericArray<T, N>
Source§impl<T, U: Clone, N: ArrayLength> Sub<NumericConstant<U>> for NumericArray<T, N>where
T: Sub<U>,
impl<T, U: Clone, N: ArrayLength> Sub<NumericConstant<U>> for NumericArray<T, N>where
T: Sub<U>,
Source§impl<T, U: Clone, N: ArrayLength> SubAssign<NumericConstant<U>> for NumericArray<T, N>where
T: SubAssign<U>,
impl<T, U: Clone, N: ArrayLength> SubAssign<NumericConstant<U>> for NumericArray<T, N>where
T: SubAssign<U>,
Source§fn sub_assign(&mut self, rhs: NumericConstant<U>)
fn sub_assign(&mut self, rhs: NumericConstant<U>)
Performs the
-=
operation. Read moreimpl<T: Copy> Copy for NumericConstant<T>
Auto Trait Implementations§
impl<T> Freeze for NumericConstant<T>where
T: Freeze,
impl<T> RefUnwindSafe for NumericConstant<T>where
T: RefUnwindSafe,
impl<T> Send for NumericConstant<T>where
T: Send,
impl<T> Sync for NumericConstant<T>where
T: Sync,
impl<T> Unpin for NumericConstant<T>where
T: Unpin,
impl<T> UnwindSafe for NumericConstant<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more