Skip to content

Commit

Permalink
Edit Into description
Browse files Browse the repository at this point in the history
  • Loading branch information
crajcan committed Mar 6, 2019
1 parent d08e68d commit b59fd23
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/conversion/from_into.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,8 @@ fn main() {

## `Into`

The [`Into`] trait is simply the reciprocal of the `From` trait. That is, if you
have implemented the `From` trait for your type you get the `Into`
implementation for free.

Using the `Into` trait will typically require specification of the type to
convert into as the compiler is unable to determine this most of the time.
However this is a small trade-off considering we get the functionality for free.
The [`Into`] trait is derived from the `From` trait and is a syntactically
different way to perform the same conversion.

```rust,editable
use std::convert::From;
Expand Down

0 comments on commit b59fd23

Please sign in to comment.