mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 11:44:28 +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`).
|
/// `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
|
||||||
|
Loading…
Reference in New Issue
Block a user