mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
Add #[deriving(Hash)] to Result.
This commit is contained in:
parent
903fbd2635
commit
506008f9a0
@ -275,7 +275,7 @@ use option::{None, Option, Some};
|
||||
/// `Result` is a type that represents either success (`Ok`) or failure (`Err`).
|
||||
///
|
||||
/// 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]
|
||||
pub enum Result<T, E> {
|
||||
/// Contains the success value
|
||||
|
Loading…
Reference in New Issue
Block a user