about summary refs log tree commit diff
path: root/src/libcore/num.rs
AgeCommit message (Collapse)AuthorLines
2013-02-03Moved all numeric modules in core into own directoryMarvin Löbel-37/+0
Reason: Better grouping of related modules, future-proving for a more extensive math library.
2013-01-30librustc: Change `self` as a type to `Self` everywhere. r=brsonPatrick Walton-10/+10
2013-01-29libstd: Remove "dual impls" from the language and enforce coherence rules. ↵Patrick Walton-0/+5
r=brson "Dual impls" are impls that are both type implementations and trait implementations. They can lead to ambiguity and so this patch removes them from the language. This also enforces coherence rules. Without this patch, records can implement traits not defined in the current crate. This patch fixes this, and updates all of rustc to adhere to the new enforcement. Most of this patch is fixing rustc to obey the coherence rules, which involves converting a bunch of records to structs.
2012-12-20core: Add a Zero and One trait to numErick Tryzelaar-0/+8
I believe these are the last traits we need in order to start grouping our numerical types into mathematical groups and rings.
2012-12-05Convert Num to explicit selfBrian Anderson-7/+7
2012-12-03Update license, add license boilerplate to most files. Remainder will follow.Graydon Hoare-0/+10
2012-09-28De-export ops, cmp, num. Part of #3583.Graydon Hoare-1/+1
2012-09-25Demode Num trait and implsTim Chevalier-5/+5
2012-09-19core: Clean up crate docs and give all mods a brief descriptionBrian Anderson-1/+1
2012-08-14Make Num::from_int a static methodTim Chevalier-4/+1
2012-08-13core: Camel case some lesser-used modulesBrian Anderson-1/+1
2012-07-31Change remaining "iface" occurrences to "trait"; deprecate "iface"Lindsey Kuper-2/+2
2012-07-26core: Mark a bunch of numeric functions as purePatrick Walton-9/+9
2012-07-05Mostly change TODOs to FIXMEs and annotate themTim Chevalier-1/+2
But, one change in io to implement a TODO suggestion (using a const u8)
2012-07-04convert doc-attributes to doc-comments using ↵Gareth Daniel Smith-1/+1
./src/etc/sugarise-doc-comments.py (and manually tweaking) - for issue #2498
2012-06-14Comments only: annotate FIXMEsTim Chevalier-2/+2
2012-06-07Add neg() to the num ifacePatrick Walton-0/+1
2012-06-07libcore: Add a num typeclassPatrick Walton-0/+15