mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
doc: Update the documentation to describe the Pod
trait.
This commit is contained in:
parent
36990dfa3f
commit
865701787c
@ -3329,6 +3329,12 @@ The kinds are:
|
||||
This kind includes scalars, owning pointers, owned closures, and
|
||||
structural types containing only other owned types.
|
||||
All `Send` types are `'static`.
|
||||
`Pod`
|
||||
: Types of this kind consist of "Plain Old Data"
|
||||
which can be copied by simply moving bits.
|
||||
All values of this kind can be implicitly copied.
|
||||
This kind includes scalars and immutable references,
|
||||
as well as structural types containing other `Pod` types.
|
||||
`'static`
|
||||
: Types of this kind do not contain any borrowed pointers;
|
||||
this can be a useful guarantee for code
|
||||
|
Loading…
Reference in New Issue
Block a user