Implement Display for Identity.

This commit is contained in:
Sébastien Crozet 2016-04-30 14:32:16 +02:00
parent a9c4bd0b78
commit aa7d4b927c
2 changed files with 7 additions and 1 deletions

View File

@ -1,6 +1,6 @@
[package]
name = "nalgebra"
version = "0.8.1"
version = "0.8.2"
authors = [ "Sébastien Crozet <developer@crozet.re>" ] # FIXME: add the contributors.
description = "Linear algebra library for computer physics, computer graphics and general low-dimensional linear algebra for Rust."

View File

@ -35,6 +35,12 @@ impl Identity {
}
}
impl fmt::Display for Identity {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "Identity")
}
}
/// Square matrix of dimension 1.
#[repr(C)]
#[derive(Eq, PartialEq, RustcEncodable, RustcDecodable, Clone, Hash, Debug, Copy)]