File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -3821,18 +3821,20 @@ impl Printable for String {
3821
3821
` self ` refers to the value of type ` String ` that is the receiver for a call to
3822
3822
the method ` make_string ` .
3823
3823
3824
- # The ` Copy ` trait
3824
+ # Special traits
3825
3825
3826
- Rust has a special trait, ` Copy ` , which when implemented changes the semantics
3827
- of a value. Values whose type implements ` Copy ` are copied rather than moved
3828
- upon assignment.
3826
+ Several traits define special evaluation behavior.
3829
3827
3830
- # The ` Sized ` trait
3828
+ ## The ` Copy ` trait
3831
3829
3832
- ` Sized ` is a special trait which indicates that the size of this type is known
3833
- at compile-time .
3830
+ The ` Copy ` trait changes the semantics of a type implementing it. Values whose
3831
+ type implements ` Copy ` are copied rather than moved upon assignment .
3834
3832
3835
- # The ` Drop ` trait
3833
+ ## The ` Sized ` trait
3834
+
3835
+ The ` Sized ` trait indicates that the size of this type is known at compile-time.
3836
+
3837
+ ## The ` Drop ` trait
3836
3838
3837
3839
The ` Drop ` trait provides a destructor, to be run whenever a value of this type
3838
3840
is to be destroyed.
You can’t perform that action at this time.
0 commit comments