about summary refs log tree commit diff
path: root/src/libextra/uuid.rs
AgeCommit message (Collapse)AuthorLines
2014-02-04extra: Move uuid to libuuidBirunthan Mohanathas-827/+0
cc #8784
2014-02-03extra: Fix tests with io_error usageAlex Crichton-1/+1
2014-01-21[std::str] Rename from_utf8_owned_opt() to from_utf8_owned(), drop the old ↵Simon Sapin-1/+1
from_utf8_owned() behavior
2014-01-21Remove unnecessary parentheses.Huon Wilson-4/+4
2014-01-20Add operator trait constraints to std::num::{Zero, One} and document their ↵Brendan Zabarauskas-31/+14
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
2014-01-17Tweak the interface of std::ioAlex Crichton-1/+1
* 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-11Remove re-exports of std::io::stdio::{print, println} in the prelude.Brendan Zabarauskas-1/+1
The `print!` and `println!` macros are now the preferred method of printing, and so there is no reason to export the `stdio` functions in the prelude. The functions have also been replaced by their macro counterparts in the tutorial and other documentation so that newcomers don't get confused about what they should be using.
2014-01-08Remove the io::Decorator traitAlex Crichton-2/+1
This is just an unnecessary trait that no one's ever going to parameterize over and it's more useful to just define the methods directly on the types themselves. The implementors of this type almost always don't want inner_mut_ref() but they're forced to define it as well.
2014-01-03libextra: Remove unnecessary `@mut`sPatrick Walton-2/+2
2013-12-23extra: impl IterBytes for uuid::UuidJeff Olson-0/+17
2013-12-19Purge @-boxes from the reading half of EBMLAlex Crichton-1/+1
Now that the metadata is an owned value with a lifetime of a borrowed byte slice, it's possible to have future optimizations where the metadata doesn't need to be copied around (very expensive operation).
2013-12-17std::vec::raw: convert copy_memory to a method.Huon Wilson-3/+1
2013-12-15auto merge of #10984 : huonw/rust/clean-raw, r=cmrbors-9/+5
See commits for details.
2013-12-15std::vec: remove unnecessary count parameter on {bytes,Huon Wilson-9/+5
raw}::copy_memory. Slices carry their length with them, so we can just use that information.
2013-12-15extra: fix spelling in docs.Huon Wilson-4/+4
2013-12-04std::str: remove from_utf8.Huon Wilson-1/+1
This function had type &[u8] -> ~str, i.e. it allocates a string internally, even though the non-allocating version that take &[u8] -> &str and ~[u8] -> ~str are all that is necessary in most circumstances.
2013-11-26test: Remove all remaining non-procedure uses of `do`.Patrick Walton-6/+6
2013-11-26Removed unneccessary `_iter` suffixes from various APIsMarvin Löbel-8/+8
2013-11-11Move std::rt::io to std::ioAlex Crichton-2/+2
2013-11-03Remove all blocking std::os blocking functionsAlex Crichton-1/+0
This commit moves all thread-blocking I/O functions from the std::os module. Their replacements can be found in either std::rt::io::file or in a hidden "old_os" module inside of native::file. I didn't want to outright delete these functions because they have a lot of special casing learned over time for each OS/platform, and I imagine that these will someday get integrated into a blocking implementation of IoFactory. For now, they're moved to a private module to prevent bitrot and still have tests to ensure that they work. I've also expanded the extensions to a few more methods defined on Path, most of which were previously defined in std::os but now have non-thread-blocking implementations as part of using the current IoFactory. The api of io::file is in flux, but I plan on changing it in the next commit as well. Closes #10057
2013-10-24Remove std::io from ebmlAlex Crichton-4/+6
2013-10-16uuid: serialize test and documentationsCorey Richardson-1/+17
2013-10-14extra: implement Encodable/Decodable for UuidCorey Richardson-0/+15
2013-10-02Check enums in missing_doc lintSteven Fackler-0/+1
Closes #9671
2013-09-30extra: Remove usage of fmt!Alex Crichton-15/+16
2013-09-25rustdoc: Change all code-blocks with a scriptAlex Crichton-2/+2
find src -name '*.rs' | xargs sed -i '' 's/~~~.*{\.rust}/```rust/g' find src -name '*.rs' | xargs sed -i '' 's/ ~~~$/ ```/g' find src -name '*.rs' | xargs sed -i '' 's/^~~~$/ ```/g'
2013-09-23std: merge rand::{Rng,RngUtil} with default methods.Huon Wilson-3/+3
Also, documentation & general clean-up: - remove `gen_char_from`: better served by `sample` or `choose`. - `gen_bytes` generalised to `gen_vec`. - `gen_int_range`/`gen_uint_range` merged into `gen_integer_range` and made to be properly uniformly distributed. Fixes #8644. Minor adjustments to other functions.
2013-09-12std: Add a bunch of Default implsErick Tryzelaar-0/+7
2013-09-07Renamed Uuid::from_utf8 to Uuid::from_bytesSteven Fackler-5/+5
This method doesn't deal with utf8. I guess it got caught in a mass rename.
2013-09-05Rename str::from_bytes to str::from_utf8, closes #8985Florian Hahn-6/+6
2013-08-23Fix two small warningsAndrew Dunham-1/+1
2013-08-16Add UUID support to libextraGavin Baker-0/+793
- generate random UUIDs - convert to and from strings and bytes - parse common string formats - implements Zero, Clone, FromStr, ToStr, Eq, TotalEq and Rand - unit tests and documentation - parsing error codes and strings - incorporate feedback from PR review