summary refs log tree commit diff
path: root/src/libcore/option.rs
AgeCommit message (Collapse)AuthorLines
2012-07-04convert doc-attributes to doc-comments using ↵Gareth Daniel Smith-64/+66
./src/etc/sugarise-doc-comments.py (and manually tweaking) - for issue #2498
2012-07-03oops, fix option.expect() and use it in libstd/map.rsBen Blum-1/+1
2012-07-03add option::expect and mark option methods as pureBen Blum-8/+27
2012-07-01Convert to new closure syntaxBrian Anderson-2/+2
2012-06-30Eliminate usages of old sugared call syntaxBrian Anderson-2/+2
2012-06-25MergeTim Chevalier-8/+10
2012-06-25core: Convert declarations to not use the trailing 'unsafe' notationBrian Anderson-8/+10
2012-06-21Port resources to classes in libcoreTim Chevalier-2/+4
2012-06-18core: Don't require copyable options where possible. Closes #2636Brian Anderson-9/+10
2012-06-02add some purity annotations in coreNiko Matsakis-5/+5
2012-04-27new, simpler approach to the iter libraryNiko Matsakis-17/+0
2012-04-23Rename option::get_or_default to get_default, for consistencyTim Chevalier-2/+2
2012-04-16rewrite region resolution so it takes place in typeckNiko Matsakis-0/+9
2012-04-11rewrite lookup_method(), lookup_method_inner(), and lookup_method_inner_()Niko Matsakis-0/+9
2012-04-06Re-rename option functionsTim Chevalier-5/+5
get_with_default (nee from_maybe) => get_default with_option (nee maybe) => map_default with_option_do (nee may) => iter As per discussion of 21be1379d561b6679a8a2ea47dce88f948c5acca
2012-04-02Rename some core::option functionsTim Chevalier-6/+7
from_maybe => get_with_default maybe => with_option may => with_option_do I know these names are kind of ridiculous, but it's the best I could think of. Feel free to bikeshed. Closes #2081
2012-03-29core: Add extension methods for optionBrian Anderson-0/+28
2012-03-26Bulk-edit mutable -> mut.Graydon Hoare-2/+2
2012-03-20core: Rename unsafe::leak to unsafe::forget. Closes #2031Brian Anderson-1/+1
2012-03-20Revert order of arguments to option::maybe and from_maybeMarijn Haverbeke-2/+2
Closes #2019
2012-03-13Name types after their modules instead of 't'Brian Anderson-10/+10
2012-03-09core: Convert to rustdocBrian Anderson-64/+40
2012-02-22Make the various from_str functions return optionsMarijn Haverbeke-0/+10
So that they can be used with user input without causing task failures. Closes #1335
2012-02-21core: Fix unused variable warningBrian Anderson-1/+1
2012-02-21core: Add option::unwrapBrian Anderson-0/+51
This function uses some unsafe code to move the value out of an option.
2012-02-20core: Remove a useless test from option modBrian Anderson-3/+0
2012-01-23s/block()/fn()/gNiko Matsakis-3/+3
2012-01-19lib: ";" to "," in enumsPatrick Walton-2/+2
2012-01-19libcore: "tag" -> "enum"Patrick Walton-1/+1
2012-01-18Remove '.' after nullary tags in patternsTim Chevalier-6/+6
Does what it says on the tin. The next commit will remove support for this syntax.
2012-01-17libcore: Move core tests into libcoreBrian Anderson-0/+3
2012-01-05Switch to new param kind bound syntaxMarijn Haverbeke-4/+4
And remove support for the old syntax
2012-01-02Add 'copy' bounds to functions that were faultily accepted withoutMarijn Haverbeke-3/+3
Issue #1390
2011-12-16Merge pull request #1317 from boggle/fix1315Graydon Hoare-2/+2
fix to #1315 + small additions to std::either and result
2011-12-16core: marked fns as pure where possibleStefan Plantikow-2/+2
2011-12-16reorder args to the various vec, option fns so blk comes lastNiko Matsakis-3/+3
2011-12-13Copy first batch of material from libstd to libcore.Graydon Hoare-0/+93