NodeIndex should derive Show.

This commit is contained in:
Felix S. Klock II 2014-05-21 14:48:03 +02:00
parent be9c2d1381
commit fef63e2f23

View File

@ -55,7 +55,7 @@ pub struct Edge<E> {
pub data: E, pub data: E,
} }
#[deriving(PartialEq)] #[deriving(PartialEq, Show)]
pub struct NodeIndex(pub uint); pub struct NodeIndex(pub uint);
pub static InvalidNodeIndex: NodeIndex = NodeIndex(uint::MAX); pub static InvalidNodeIndex: NodeIndex = NodeIndex(uint::MAX);