You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pointers to sized types have the same size and alignment as usize.
Pointers to unsized types are sized. The size and alignment is guaranteed to be at least equal to the size and alignment of a pointer.
Note: Though you should not rely on this, all pointers to DSTs are currently twice the size of the size of usize and have the same alignment.
Re: this sentence in particular
The size and alignment is guaranteed to be at least equal to the size and alignment of a pointer.
could it be that there are some missing words at the end of the sentence? For example:
The size and alignment is guaranteed to be at least equal to the size and alignment of a pointer to a sized type.
After all, the very point of these passages seems to be that there's no such thing as 'the size and alignment of a pointer' as it is ambiguous and can refer to either a pointer to a sized type or a pointer to an unsized type.
The text was updated successfully, but these errors were encountered:
The Type Layout reference page (https://doc.rust-lang.org/reference/type-layout.html) contains the following sentences.
Re: this sentence in particular
could it be that there are some missing words at the end of the sentence? For example:
After all, the very point of these passages seems to be that there's no such thing as 'the size and alignment of a pointer' as it is ambiguous and can refer to either a pointer to a sized type or a pointer to an unsized type.
The text was updated successfully, but these errors were encountered: