]> git.lizzy.rs Git - rust.git/commitdiff
Minor doc updates to reflect #[deriving(Zero)], and small release notes adjustments.
authorHuon Wilson <dbau.pp+github@gmail.com>
Thu, 20 Jun 2013 08:11:13 +0000 (18:11 +1000)
committerDaniel Micay <danielmicay@gmail.com>
Fri, 21 Jun 2013 04:55:13 +0000 (00:55 -0400)
The `extra::fileinput` module landed just after 0.6 was released, and there are many
more derivable traits.

RELEASES.txt
doc/rust.md
doc/tutorial.md

index 54d527fcf20d3e615ac40a4db109bced8cbc5cce..9777245e40c9d3ed6acf5623e90f6c0cc2d723e4 100644 (file)
@@ -7,8 +7,9 @@ Version 0.7 (July 2013)
       * `use mod` is no longer valid.
       * `fail!` and `assert!` accept `~str`, `&'static str` or `fmt!`-style
         argument list.
-      * `Encodable`, `Decodable`, `TotalOrd`, `TotalEq`, `DeepClone` can all
-        be automatically derived with `#[deriving(...)]`.
+      * `Encodable`, `Decodable`, `Ord`, `TotalOrd`, `TotalEq`, `DeepClone`,
+        `Rand`, `Zero` and `ToStr` can all be automatically derived with
+        `#[deriving(...)]`.
       * The `Durable` trait is replaced with the `'static` bounds.
       * At long last, 'argument modes' no longer exist.
       * The `bytes!` macro returns a vector of bytes for string, u8, char,
@@ -55,8 +56,8 @@ Version 0.7 (July 2013)
         `(0, 1, 2).n2()` or `(0, 1, 2).n2_ref()`.
       * std: many types implement `Clone`.
       * std: `path` type renamed to `Path`.
-      * std: Many standalone functions removed in favor of methods in
-        `vec`, `str`. In the future methods will also work as functions.
+      * std: Many standalone functions removed in favor of methods and iterators
+        in `vec`, `str`. In the future methods will also work as functions.
       * std: `reinterpret_cast` removed. Used `transmute`.
       * std: ascii string handling in `std::ascii`.
       * std: `Rand` is implemented for ~/@.
@@ -71,7 +72,7 @@ Version 0.7 (July 2013)
       * std: `Cell` constructors converted to static methods.
       * extra: `rc` module adds the reference counted pointers, `Rc` and `RcMut`.
       * extra: `flate` module moved from `std` to `extra`.
-      * extra: `FileInput` implements `std::io::Reader`.
+      * extra: `fileinput` module for iterating over a series of files.
       * extra: `Complex` number type and `complex` module.
       * extra: `Rational` number type and `rational` module.
       * extra: `BigInt`, `BigUint` implement numeric and comparison traits.
index 9edbc44d6c21df1e530190c6cffd42bb86d7ddaa..f533bb50f7515cc911925927e9f896016859d904 100644 (file)
@@ -1561,6 +1561,7 @@ Supported traits for `deriving` are:
 * `Clone` and `DeepClone`, to perform (deep) copies.
 * `IterBytes`, to iterate over the bytes in a data type.
 * `Rand`, to create a random instance of a data type.
+* `Zero`, to create an zero (or empty) instance of a data type.
 * `ToStr`, to convert to a string. For a type with this instance,
   `obj.to_str()` has the same output as `fmt!("%?", obj)`.
 
index 92d88be6c94917589b08d8b0ae40e69c98982828..ee01f2a5bdf9caf7b75bd956d7f83e3ca177083d 100644 (file)
@@ -2319,7 +2319,7 @@ enum ABC { A, B, C }
 
 The full list of derivable traits is `Eq`, `TotalEq`, `Ord`,
 `TotalOrd`, `Encodable` `Decodable`, `Clone`, `DeepClone`,
-`IterBytes`, `Rand` and `ToStr`.
+`IterBytes`, `Rand`, `Zero`, and `ToStr`.
 
 # Modules and crates