Add missing type bounds.
This commit is contained in:
parent
4f3de703b7
commit
164ff5b1b2
|
@ -143,7 +143,7 @@ impl<N: Ring> Dot<N> for vec::Vec0<N>
|
|||
{ Zero::zero() }
|
||||
}
|
||||
|
||||
impl<N: Ring> SubDot<N> for vec::Vec0<N>
|
||||
impl<N: Clone + Ring> SubDot<N> for vec::Vec0<N>
|
||||
{
|
||||
#[inline]
|
||||
fn sub_dot(&self, _: &vec::Vec0<N>, _: &vec::Vec0<N>) -> N
|
||||
|
|
|
@ -224,7 +224,7 @@ macro_rules! dot_impl(
|
|||
|
||||
macro_rules! sub_dot_impl(
|
||||
($t: ident, $comp0: ident $(,$compN: ident)*) => (
|
||||
impl<N: Ring> SubDot<N> for $t<N>
|
||||
impl<N: Clone + Ring> SubDot<N> for $t<N>
|
||||
{
|
||||
#[inline]
|
||||
fn sub_dot(&self, a: &$t<N>, b: &$t<N>) -> N
|
||||
|
|
Loading…
Reference in New Issue