File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
A consequence of how bounds work is that even if a ` trait ` doesn't
4
4
include any functionality, you can still use it as a bound. ` Eq ` and
5
- ` Ord ` are examples of such ` trait ` s from the ` std ` library.
5
+ ` Copy ` are examples of such ` trait ` s from the ` std ` library.
6
6
7
7
``` rust,editable
8
8
struct Cardinal;
@@ -36,8 +36,8 @@ fn main() {
36
36
37
37
### See also:
38
38
39
- [ ` std::cmp::Eq ` ] [ eq ] , [ ` std::cmp::Ord ` s ] [ ord ] , and [ ` trait ` s] [ traits ]
39
+ [ ` std::cmp::Eq ` ] [ eq ] , [ ` std::marker::Copy ` ] [ copy ] , and [ ` trait ` s] [ traits ]
40
40
41
41
[ eq ] : https://doc.rust-lang.org/std/cmp/trait.Eq.html
42
- [ ord ] : https://doc.rust-lang.org/std/cmp /trait.Ord .html
42
+ [ copy ] : https://doc.rust-lang.org/std/marker /trait.Copy .html
43
43
[ traits ] : ../../trait.md
You can’t perform that action at this time.
0 commit comments