about summary refs log tree commit diff
path: root/src/libstd/to_bytes.rs
AgeCommit message (Collapse)AuthorLines
2014-02-24Transition to new `Hash`, removing IterBytes and std::to_bytes.Huon Wilson-375/+0
2014-02-21libstd: Implement some convenience methods on vectorsPatrick Walton-0/+8
2014-02-03std: Remove io::io_errorAlex Crichton-1/+1
* All I/O now returns IoResult<T> = Result<T, IoError> * All formatting traits now return fmt::Result = IoResult<()> * The if_ok!() macro was added to libstd
2014-02-02std,extra: remove use of & support for @[].Huon Wilson-7/+0
2014-02-02libextra: Remove `@str` from all the librariesPatrick Walton-7/+0
2014-01-17Tweak the interface of std::ioAlex Crichton-7/+6
* Reexport io::mem and io::buffered structs directly under io, make mem/buffered private modules * Remove with_mem_writer * Remove DEFAULT_CAPACITY and use DEFAULT_BUF_SIZE (in io::buffered)
2014-01-03libstd: Remove all support code related to `@mut`Patrick Walton-7/+0
2013-12-27std: uniform modules titles for docLuca Bruno-1/+1
This commit uniforms the short title of modules provided by libstd, in order to make their roles more explicit when glancing at the index. Signed-off-by: Luca Bruno <lucab@debian.org>
2013-12-11Make 'self lifetime illegal.Erik Price-4/+4
Also remove all instances of 'self within the codebase. This fixes #10889.
2013-11-26libstd: Remove all non-`proc` uses of `do` from libstdPatrick Walton-4/+4
2013-11-26librustc: Remove remaining uses of `&fn()` in favor of `||`.Patrick Walton-1/+1
2013-11-25Implement IterBytes for Rc<T>.Léo Testard-0/+8
2013-11-11Move std::rt::io to std::ioAlex Crichton-2/+2
2013-10-24Remove std::io once and for all!Alex Crichton-3/+4
2013-10-01remove the `float` typeDaniel Micay-7/+0
It is simply defined as `f64` across every platform right now. A use case hasn't been presented for a `float` type defined as the highest precision floating point type implemented in hardware on the platform. Performance-wise, using the smallest precision correct for the use case greatly saves on cache space and allows for fitting more numbers into SSE/AVX registers. If there was a use case, this could be implemented as simply a type alias or a struct thanks to `#[cfg(...)]`. Closes #6592 The mailing list thread, for reference: https://mail.mozilla.org/pipermail/rust-dev/2013-July/004632.html
2013-09-12std: fix a warningErick Tryzelaar-1/+1
2013-09-09rename `std::iterator` to `std::iter`Daniel Micay-1/+1
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.
2013-09-06added IterBytes for 4-tuplesJohn Clements-0/+10
2013-08-27librustc: Remove `&const` and `*const` from the language.Patrick Walton-1/+8
They are still present as part of the borrow check.
2013-08-18std::to_bytes: Implement IterBytes on 1- to 8-tuplesblake2-ppc-20/+29
2013-08-18std::to_bytes: Delimit sequences &[A] and ~str when hashingblake2-ppc-39/+38
Address issue #5257, for example these values all had the same hash value: ("aaa", "bbb", "ccc") ("aaab", "bb", "ccc") ("aaabbb", "", "ccc") IterBytes for &[A] now includes the length, before calling iter_bytes on each element. IterBytes for &str is now terminated by a byte that does not appear in UTF-8. This way only one more byte is processed when hashing strings.
2013-08-16doc: correct spelling in documentation.Huon Wilson-1/+1
2013-08-10std: merge Iterator and IteratorUtilErick Tryzelaar-1/+1
2013-08-01std: Use `do` blocks instead of `for` with .iter_bytes()blake2-ppc-3/+4
2013-07-17libsyntax: Remove some multi-gigabyte clones that were preventing ↵Patrick Walton-0/+7
bootstrapping on Windows.
2013-06-29'Borrow' stack closures rather than copying them (e.g., "|x|f(x)"), in prep ↵Ben Blum-3/+6
for making them noncopyable.
2013-06-23vec: remove BaseIter implementationDaniel Micay-2/+3
I removed the `static-method-test.rs` test because it was heavily based on `BaseIter` and there are plenty of other more complex uses of static methods anyway.
2013-06-18replace #[inline(always)] with #[inline]. r=burningtree.Graydon Hoare-29/+29
2013-06-15Add IterBytes impls for float/f32/f64. This allows creatinggareth-0/+30
HashMaps with floats as keys.
2013-06-12std: unify the str -> [u8] functions as 3 methods: .as_bytes() and ↵Huon Wilson-10/+8
.as_bytes_with_null[_consume](). The first acts on &str and is not nul-terminated, the last two act on strings that are always null terminated (&'static str, ~str and @str).
2013-05-30Require documentation by default for libstdAlex Crichton-0/+4
Adds documentation for various things that I understand. Adds #[allow(missing_doc)] for lots of things that I don't understand.
2013-05-23core: remove iter_bytes helper functionsErick Tryzelaar-36/+0
2013-05-22libstd: Rename libcore to libstd and libstd to libextra; update makefiles.Patrick Walton-0/+354
This only changes the directory names; it does not change the "real" metadata names.