Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
"Sized" is the trait, not "?Sized"
  • Loading branch information
Ericson2314 committed Jan 21, 2017
commit cf183e93cacb2d9649d4476504370a7905c26c29
2 changes: 1 addition & 1 deletion text/0000-extern-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ These can also be declared inside an `extern` block:
}
```

These types are FFI-safe. They are also DSTs, meaning that they implement `?Sized`. Being DSTs, they cannot be kept on the stack and can only be accessed through pointers.
These types are FFI-safe. They are also DSTs, meaning that they do not implement `Sized`. Being DSTs, they cannot be kept on the stack and can only be accessed through pointers.

In Rust, pointers to DSTs carry metadata about the object being pointed to.
For strings and slices this is the length of the buffer, for trait objects this is the object's vtable.
Expand Down