Skip to content

Commit af9ddd7

Browse files
committed
kinds: update documentation
1 parent 062747b commit af9ddd7

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

src/libstd/kinds.rs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,21 @@ intrinsic properties of the type. These classifications, often called
1818
They cannot be implemented by user code, but are instead implemented
1919
by the compiler automatically for the types to which they apply.
2020
21-
The 2 kinds are
22-
23-
* Send - owned types and types containing owned types. These types
24-
may be transferred across task boundaries.
25-
26-
* Freeze - types that are deeply immutable.
27-
2821
*/
2922

30-
#[allow(missing_doc)];
31-
23+
/// Types able to be transferred across task boundaries.
3224
#[lang="send"]
3325
pub trait Send {
3426
// empty.
3527
}
3628

29+
/// Types that are either immutable or have inherited mutability.
3730
#[lang="freeze"]
3831
pub trait Freeze {
3932
// empty.
4033
}
4134

35+
/// Types with a constant size known at compile-time.
4236
#[lang="sized"]
4337
pub trait Sized {
4438
// Empty.

0 commit comments

Comments
 (0)