<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/libcore/convert.rs, branch 1.0.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.0.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.0.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2015-05-10T18:33:16+00:00</updated>
<entry>
<title>Make From::from example more idiomatic / simpler</title>
<updated>2015-05-10T18:33:16+00:00</updated>
<author>
<name>Corey Farwell</name>
<email>coreyf@rwell.org</email>
</author>
<published>2015-04-27T03:18:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=df42cbd9a10b49794de21072a34af44b56292352'/>
<id>urn:sha1:df42cbd9a10b49794de21072a34af44b56292352</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add examples for Convert</title>
<updated>2015-04-10T16:44:20+00:00</updated>
<author>
<name>Steve Klabnik</name>
<email>steve@steveklabnik.com</email>
</author>
<published>2015-04-06T18:25:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=288b1c9aba7ab46211d1760d2dc8fcc634acd515'/>
<id>urn:sha1:288b1c9aba7ab46211d1760d2dc8fcc634acd515</id>
<content type='text'>
</content>
</entry>
<entry>
<title>s/Perform/Performs/</title>
<updated>2015-04-04T14:26:14+00:00</updated>
<author>
<name>Andrew Paseltiner</name>
<email>apaseltiner@gmail.com</email>
</author>
<published>2015-04-04T14:26:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2d198955d329904cbd54531e6f404a5648ace19f'/>
<id>urn:sha1:2d198955d329904cbd54531e6f404a5648ace19f</id>
<content type='text'>
Per [RFC #0505](https://github.com/rust-lang/rfcs/blob/master/text/0505-api-comment-conventions.md#formatting).</content>
</entry>
<entry>
<title>Test fixes and rebase conflicts, round 2</title>
<updated>2015-03-31T22:56:33+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2015-03-31T18:41:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=30532884f83c4346f736dee5df03e812bde94ddc'/>
<id>urn:sha1:30532884f83c4346f736dee5df03e812bde94ddc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rollup merge of #23879: seanmonstar/del-from-error</title>
<updated>2015-03-31T22:53:39+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2015-03-31T18:27:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e10ee2c8572421c056ea68e6656fee936e0330d8'/>
<id>urn:sha1:e10ee2c8572421c056ea68e6656fee936e0330d8</id>
<content type='text'>
Conflicts:
	src/libcore/error.rs
</content>
</entry>
<entry>
<title>Stabilize `std::convert` and related code</title>
<updated>2015-03-31T18:24:38+00:00</updated>
<author>
<name>Aaron Turon</name>
<email>aturon@mozilla.com</email>
</author>
<published>2015-03-30T22:15:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9fc51efe3344a32d9e522f08383f052277b6ab63'/>
<id>urn:sha1:9fc51efe3344a32d9e522f08383f052277b6ab63</id>
<content type='text'>
* Marks `#[stable]` the contents of the `std::convert` module.

* Added methods `PathBuf::as_path`, `OsString::as_os_str`,
  `String::as_str`, `Vec::{as_slice, as_mut_slice}`.

* Deprecates `OsStr::from_str` in favor of a new, stable, and more
  general `OsStr::new`.

* Adds unstable methods `OsString::from_bytes` and `OsStr::{to_bytes,
  to_cstring}` for ergonomic FFI usage.

[breaking-change]
</content>
</entry>
<entry>
<title>convert: remove FromError, use From&lt;E&gt; instead</title>
<updated>2015-03-31T01:08:58+00:00</updated>
<author>
<name>Sean McArthur</name>
<email>sean.monstar@gmail.com</email>
</author>
<published>2015-03-31T00:56:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e17f4fc1d4545f5c17b21805c5145b05495484ee'/>
<id>urn:sha1:e17f4fc1d4545f5c17b21805c5145b05495484ee</id>
<content type='text'>
This removes the FromError trait, since it can now be expressed using
the new convert::Into trait. All implementations of FromError&lt;E&gt; where
changed to From&lt;E&gt;, and `try!` was changed to use From::from instead.

Because this removes FromError, it is a breaking change, but fixing it
simply requires changing the words `FromError` to `From`, and
`from_error` to `from`.

[breaking-change]
</content>
</entry>
<entry>
<title>Revise use of conversion traits</title>
<updated>2015-03-26T20:54:48+00:00</updated>
<author>
<name>Aaron Turon</name>
<email>aturon@mozilla.com</email>
</author>
<published>2015-03-26T20:39:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e7525cf6200e5b62a4b1a2f3131f68d946fb331e'/>
<id>urn:sha1:e7525cf6200e5b62a4b1a2f3131f68d946fb331e</id>
<content type='text'>
This commit revises `path` and `os_str` to use blanket impls for `From`
on reference types. This both cuts down on the number of required impls,
and means that you can pass through e.g. `T: AsRef&lt;OsStr&gt;` to
`PathBuf::from` without an intermediate call to `as_ref`.

It also makes a FIXME note for later generalizing the blanket impls for
`AsRef` and `AsMut` to use `Deref`/`DerefMut`, once it is possible to do
so.
</content>
</entry>
<entry>
<title>Add generic conversion traits</title>
<updated>2015-03-23T22:01:45+00:00</updated>
<author>
<name>Aaron Turon</name>
<email>aturon@mozilla.com</email>
</author>
<published>2015-03-18T16:14:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8389253df0431e58bfe0a8e0e3949d58ebe7400f'/>
<id>urn:sha1:8389253df0431e58bfe0a8e0e3949d58ebe7400f</id>
<content type='text'>
This commit:

* Introduces `std::convert`, providing an implementation of
RFC 529.

* Deprecates the `AsPath`, `AsOsStr`, and `IntoBytes` traits, all
in favor of the corresponding generic conversion traits.

  Consequently, various IO APIs now take `AsRef&lt;Path&gt;` rather than
`AsPath`, and so on. Since the types provided by `std` implement both
traits, this should cause relatively little breakage.

* Deprecates many `from_foo` constructors in favor of `from`.

* Changes `PathBuf::new` to take no argument (creating an empty buffer,
  as per convention). The previous behavior is now available as
  `PathBuf::from`.

* De-stabilizes `IntoCow`. It's not clear whether we need this separate trait.

Closes #22751
Closes #14433

[breaking-change]
</content>
</entry>
</feed>
