1. 17 12月, 2013 1 次提交
  2. 04 12月, 2013 1 次提交
  3. 14 11月, 2013 1 次提交
    • A
      Introduce an io::Buffer trait · 7bc092f1
      Alex Crichton 提交于
      This trait is meant to abstract whether a reader is actually implemented with an
      underlying buffer. For all readers which are implemented as such, we can
      efficiently implement things like read_char, read_line, read_until, etc. There
      are two required methods for managing the internal buffer, and otherwise
      read_line and friends can all become default methods.
      
      Closes #10334
      7bc092f1
  4. 12 11月, 2013 1 次提交
  5. 04 11月, 2013 1 次提交
  6. 28 10月, 2013 1 次提交
    • M
      Allow fail messages to be caught, and introduce the Any trait · fa8e71a8
      Marvin Löbel 提交于
      Some code cleanup, sorting of import blocks
      
      Removed std::unstable::UnsafeArc's use of Either
      
      Added run-fail tests for the new FailWithCause impls
      
      Changed future_result and try to return Result<(), ~Any>.
      
      - Internally, there is an enum of possible fail messages passend around.
      - In case of linked failure or a string message, the ~Any gets
        lazyly allocated in future_results recv method.
      - For that, future result now returns a wrapper around a Port.
      - Moved and renamed task::TaskResult into rt::task::UnwindResult
        and made it an internal enum.
      - Introduced a replacement typedef `type TaskResult = Result<(), ~Any>`.
      fa8e71a8
  7. 25 10月, 2013 1 次提交
  8. 24 10月, 2013 1 次提交
  9. 16 10月, 2013 1 次提交
    • K
      path2: Replace the path module outright · 73d3d00e
      Kevin Ballard 提交于
      Remove the old path.
      Rename path2 to path.
      Update all clients for the new path.
      
      Also make some miscellaneous changes to the Path APIs to help the
      adoption process.
      73d3d00e
  10. 10 10月, 2013 1 次提交
    • A
      Implement rt::io::stdio · facefa7c
      Alex Crichton 提交于
      Additionally, this moves the prelude imports of print/println from std::io to
      std::rt::io.
      
      Closes #6846
      facefa7c
  11. 02 10月, 2013 1 次提交
  12. 25 9月, 2013 1 次提交
  13. 16 9月, 2013 1 次提交
    • M
      Add an SendStr type · 76c3e8a3
      Marvin Löbel 提交于
      A SendStr is a string that can hold either a ~str or a &'static str.
      This can be useful as an optimization when an allocation is sometimes needed but the common case is statically known.
      
      Possible use cases include Maps with both static and owned keys, or propagating error messages across task boundaries.
      
      SendStr implements most basic traits in a way that hides the fact that it is an enum; in particular things like order and equality are only determined by the content of the wrapped strings.
      
      Replaced std::rt:logging::SendableString with SendStr
      Added tests for using an SendStr as key in Hash- and Treemaps
      76c3e8a3
  14. 09 9月, 2013 1 次提交
    • D
      rename `std::iterator` to `std::iter` · 6919cf5f
      Daniel Micay 提交于
      The trait will keep the `Iterator` naming, but a more concise module
      name makes using the free functions less verbose. The module will define
      iterables in addition to iterators, as it deals with iteration in
      general.
      6919cf5f
  15. 05 9月, 2013 1 次提交
  16. 02 9月, 2013 1 次提交
    • B
      std::iterator: Use ExactSize, inheriting DoubleEndedIterator · 35040dfc
      blake2-ppc 提交于
      Address discussion with acrichto; inherit DoubleEndedIterator so that
      `.rposition()` can be a default method, and that the nische of the trait
      is clear. Use assertions when using `.size_hint()` in reverse enumerate
      and `.rposition()`
      35040dfc
  17. 31 8月, 2013 1 次提交
    • B
      std: Implement .rposition() on double-ended iterators with known size · db22f262
      blake2-ppc 提交于
      This is a generalization of the vector .rposition() method, to all
      double-ended iterators that have the ExactSizeHint trait.
      
      This resolves the slight asymmetry around `position` and `rposition`
      
      * position from front is `vec.iter().position()`
      * position from the back was, `vec.rposition()` is now `vec.iter().rposition()`
      
      Additionally, other indexed sequences (only `extra::ringbuf` I think),
      will have the same method available once it implements ExactSizeHint.
      db22f262
  18. 29 8月, 2013 1 次提交
    • J
      Remove the iter module. · dc30005a
      Jason Fager 提交于
      Moves the Times trait to num while the question of whether it should
      exist at all gets hashed out as a completely separate question.
      dc30005a
  19. 27 8月, 2013 1 次提交
  20. 21 8月, 2013 3 次提交
  21. 16 8月, 2013 1 次提交
  22. 11 8月, 2013 1 次提交
  23. 10 8月, 2013 2 次提交
  24. 09 8月, 2013 1 次提交
  25. 07 8月, 2013 1 次提交
  26. 05 8月, 2013 2 次提交
  27. 02 8月, 2013 1 次提交
  28. 24 7月, 2013 1 次提交
  29. 18 7月, 2013 1 次提交
  30. 14 7月, 2013 1 次提交
    • S
      Split mutable methods out of Set and Map · 6b37b5ba
      Steven Fackler 提交于
      Fixes most of #4989. I didn't add Persistent{Set,Map} since the only
      persistent data structure is fun_treemap and its functionality is
      currently too limited to build a trait out of.
      6b37b5ba
  31. 12 7月, 2013 1 次提交
  32. 03 7月, 2013 1 次提交
  33. 01 7月, 2013 1 次提交
  34. 30 6月, 2013 2 次提交
  35. 28 6月, 2013 1 次提交