Add Debug trait to Outer trait

This commit is contained in:
Michael Riss 2015-11-13 15:33:44 +01:00
parent 0f24c2d8fc
commit 73158ddad1
3 changed files with 5 additions and 3 deletions

View File

@ -19,6 +19,7 @@ use traits::geometry::{ToHomogeneous, FromHomogeneous, Orig};
use linalg;
#[cfg(feature="arbitrary")]
use quickcheck::{Arbitrary, Gen};
use std::fmt::Debug;
/// Special identity matrix. All its operation are no-ops.

View File

@ -702,7 +702,7 @@ macro_rules! from_homogeneous_impl(
macro_rules! outer_impl(
($t: ident, $m: ident) => (
impl<N: Copy + Mul<N, Output = N> + Zero> Outer for $t<N> {
impl<N: Copy + Debug + Mul<N, Output = N> + Zero> Outer for $t<N> {
type OuterProductType = $m<N>;
#[inline]

View File

@ -4,6 +4,7 @@ use num::{Float, Signed};
use std::ops::Mul;
use std::cmp::Ordering;
use traits::structure::SquareMat;
use std::fmt::Debug;
/// Result of a partial ordering.
#[derive(Eq, PartialEq, RustcEncodable, RustcDecodable, Clone, Debug, Copy)]
@ -300,9 +301,9 @@ pub trait Transpose {
}
/// Traits of objects having an outer product.
pub trait Outer {
pub trait Outer : Debug {
/// Result type of the outer product.
type OuterProductType;
type OuterProductType : Debug;
/// Computes the outer product: `a * b`
fn outer(&self, other: &Self) -> Self::OuterProductType;