summary refs log tree commit diff
path: root/src/libstd/unit.rs
AgeCommit message (Collapse)AuthorLines
2014-03-23std: remove the `equals` method from `TotalEq`.Huon Wilson-4/+1
`TotalEq` is now just an assertion about the `Eq` impl of a type (i.e. `==` is a total equality if a type implements `TotalEq`) so the extra method is just confusing. Also, a new method magically appeared as a hack to allow deriving to assert that the contents of a struct/enum are also TotalEq, because the deriving infrastructure makes it very hard to do anything but create a trait method. (You didn't hear about this horrible work-around from me :(.)
2014-02-13Add some missing Show implementations in libstdBrendan Zabarauskas-0/+7
2014-02-08Fix unused import warnings.OGINO Masanori-0/+1
Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
2014-02-07Cleaned up imports per coding standards.chromatic-1/+1
No functional changes; just style.
2014-02-07Removed prelude::* from libstd files.chromatic-1/+2
This replaces the imports from the prelude with the re-exported symbols.
2014-01-20Add operator trait constraints to std::num::{Zero, One} and document their ↵Brendan Zabarauskas-10/+0
appropriate use Zero and One have precise definitions in mathematics. Documentation has been added to describe the appropriate uses for these traits and the laws that they should satisfy. For more information regarding these identities, see the following wikipedia pages: - http://wikipedia.org/wiki/Additive_identity - http://wikipedia.org/wiki/Multiplicative_identity
2013-11-01Reordered the methods in std::Option and std::ResultMarvin Löbel-5/+1
Cleaned up the source in a few places Renamed `map_move` to `map`, removed other `map` methods Added `as_ref` and `as_mut` adapters to `Result` Added `fmt::Default` impl
2013-09-12std: Add a bunch of Default implsErick Tryzelaar-5/+6
2013-08-26Add a Default trait.Corey Richardson-0/+5
2013-08-14Methodyfied the string ascii extionsion functionsMarvin Löbel-0/+54
Added into_owned() method for vectors Added DoubleEnded Iterator impl to Option Renamed nil.rs to unit.rs