Skip to content

Commit

Permalink
Improve special-traits section very slightly.
Browse files Browse the repository at this point in the history
  • Loading branch information
graydon committed Apr 18, 2015
1 parent 7f2f09f commit f5b2963
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/doc/reference.md
Expand Up @@ -3821,18 +3821,20 @@ impl Printable for String {
`self` refers to the value of type `String` that is the receiver for a call to
the method `make_string`.

# The `Copy` trait
# Special traits

Rust has a special trait, `Copy`, which when implemented changes the semantics
of a value. Values whose type implements `Copy` are copied rather than moved
upon assignment.
Several traits define special evaluation behavior.

# The `Sized` trait
## The `Copy` trait

`Sized` is a special trait which indicates that the size of this type is known
at compile-time.
The `Copy` trait changes the semantics of a type implementing it. Values whose
type implements `Copy` are copied rather than moved upon assignment.

# The `Drop` trait
## The `Sized` trait

The `Sized` trait indicates that the size of this type is known at compile-time.

## The `Drop` trait

The `Drop` trait provides a destructor, to be run whenever a value of this type
is to be destroyed.
Expand Down

0 comments on commit f5b2963

Please sign in to comment.