Add #[deriving(Hash)] to Result.

This commit is contained in:
Richard Diamond 2014-04-17 12:22:02 -05:00
parent 903fbd2635
commit 506008f9a0
1 changed files with 1 additions and 1 deletions

View File

@ -275,7 +275,7 @@ use option::{None, Option, Some};
/// `Result` is a type that represents either success (`Ok`) or failure (`Err`). /// `Result` is a type that represents either success (`Ok`) or failure (`Err`).
/// ///
/// See the [`std::result`](index.html) module documentation for details. /// See the [`std::result`](index.html) module documentation for details.
#[deriving(Clone, Eq, Ord, TotalEq, TotalOrd, Show)] #[deriving(Clone, Eq, Ord, TotalEq, TotalOrd, Show, Hash)]
#[must_use] #[must_use]
pub enum Result<T, E> { pub enum Result<T, E> {
/// Contains the success value /// Contains the success value