fmt::Show to fmt::Debug
This commit is contained in:
parent
1e202709b7
commit
e712bdee7c
7 changed files with 13 additions and 13 deletions
|
@ -122,7 +122,7 @@ impl<S: BaseNum> Aabb<S, Vector2<S>, Point2<S>> for Aabb2<S> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<S: BaseNum> fmt::Show for Aabb2<S> {
|
||||
impl<S: BaseNum> fmt::Debug for Aabb2<S> {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
write!(f, "[{:?} - {:?}]", self.min, self.max)
|
||||
}
|
||||
|
@ -169,7 +169,7 @@ impl<S: BaseNum> Aabb<S, Vector3<S>, Point3<S>> for Aabb3<S> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<S: BaseNum> fmt::Show for Aabb3<S> {
|
||||
impl<S: BaseNum> fmt::Debug for Aabb3<S> {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
write!(f, "[{:?} - {:?}]", self.min, self.max)
|
||||
}
|
||||
|
|
|
@ -1375,7 +1375,7 @@ impl<S: BaseFloat + 'static> ToQuaternion<S> for Matrix3<S> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<S: BaseNum> fmt::Show for Matrix2<S> {
|
||||
impl<S: BaseNum> fmt::Debug for Matrix2<S> {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
write!(f, "[[{:?}, {:?}], [{:?}, {:?}]]",
|
||||
self[0][0], self[0][1],
|
||||
|
@ -1383,7 +1383,7 @@ impl<S: BaseNum> fmt::Show for Matrix2<S> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<S: BaseNum> fmt::Show for Matrix3<S> {
|
||||
impl<S: BaseNum> fmt::Debug for Matrix3<S> {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
write!(f, "[[{:?}, {:?}, {:?}], [{:?}, {:?}, {:?}], [{:?}, {:?}, {:?}]]",
|
||||
self[0][0], self[0][1], self[0][2],
|
||||
|
@ -1392,7 +1392,7 @@ impl<S: BaseNum> fmt::Show for Matrix3<S> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<S: BaseNum> fmt::Show for Matrix4<S> {
|
||||
impl<S: BaseNum> fmt::Debug for Matrix4<S> {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
write!(f, "[[{:?}, {:?}, {:?}, {:?}], [{:?}, {:?}, {:?}, {:?}], [{:?}, {:?}, {:?}, {:?}], [{:?}, {:?}, {:?}, {:?}]]",
|
||||
self[0][0], self[0][1], self[0][2], self[0][3],
|
||||
|
|
|
@ -129,7 +129,7 @@ ApproxEq<S> for Plane<S> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<S: BaseFloat> fmt::Show for Plane<S> {
|
||||
impl<S: BaseFloat> fmt::Debug for Plane<S> {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
write!(f, "{:?}x + {:?}y + {:?}z - {:?} = 0",
|
||||
self.n.x, self.n.y, self.n.z, self.d)
|
||||
|
|
|
@ -428,13 +428,13 @@ impl<S: BaseFloat> ApproxEq<S> for Point3<S> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<S: BaseNum> fmt::Show for Point2<S> {
|
||||
impl<S: BaseNum> fmt::Debug for Point2<S> {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
write!(f, "[{:?}, {:?}]", self.x, self.y)
|
||||
}
|
||||
}
|
||||
|
||||
impl<S: BaseNum> fmt::Show for Point3<S> {
|
||||
impl<S: BaseNum> fmt::Debug for Point3<S> {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
write!(f, "[{:?}, {:?}, {:?}]", self.x, self.y, self.z)
|
||||
}
|
||||
|
|
|
@ -368,7 +368,7 @@ impl<S: BaseFloat> Neg for Quaternion<S> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<S: BaseFloat> fmt::Show for Quaternion<S> {
|
||||
impl<S: BaseFloat> fmt::Debug for Quaternion<S> {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
write!(f, "{:?} + {:?}i + {:?}j + {:?}k",
|
||||
self.s,
|
||||
|
|
|
@ -151,7 +151,7 @@ impl<S: BaseFloat + 'static, R: Rotation3<S>> ToMatrix4<S> for Decomposed<S, Vec
|
|||
|
||||
impl<S: BaseFloat, R: Rotation3<S>> Transform3<S> for Decomposed<S,Vector3<S>,R> where S: 'static {}
|
||||
|
||||
impl<S: BaseFloat, R: fmt::Show + Rotation3<S>> fmt::Show for Decomposed<S,Vector3<S>,R> {
|
||||
impl<S: BaseFloat, R: fmt::Debug + Rotation3<S>> fmt::Debug for Decomposed<S,Vector3<S>,R> {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
write!(f, "(scale({:?}), rot({:?}), disp{:?})",
|
||||
self.scale, self.rot, self.disp)
|
||||
|
|
|
@ -557,19 +557,19 @@ impl<S: BaseFloat> EuclideanVector<S> for Vector4<S> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<S: BaseNum> fmt::Show for Vector2<S> {
|
||||
impl<S: BaseNum> fmt::Debug for Vector2<S> {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
write!(f, "[{:?}, {:?}]", self.x, self.y)
|
||||
}
|
||||
}
|
||||
|
||||
impl<S: BaseNum> fmt::Show for Vector3<S> {
|
||||
impl<S: BaseNum> fmt::Debug for Vector3<S> {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
write!(f, "[{:?}, {:?}, {:?}]", self.x, self.y, self.z)
|
||||
}
|
||||
}
|
||||
|
||||
impl<S: BaseNum> fmt::Show for Vector4<S> {
|
||||
impl<S: BaseNum> fmt::Debug for Vector4<S> {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
write!(f, "[{:?}, {:?}, {:?}, {:?}]", self.x, self.y, self.z, self.w)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue