We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 96c4dba + a9b0966 commit 4fb4561Copy full SHA for 4fb4561
library/core/src/alloc/layout.rs
@@ -130,6 +130,8 @@ impl Layout {
130
}
131
132
/// The minimum byte alignment for a memory block of this layout.
133
+ ///
134
+ /// The returned alignment is guaranteed to be a power of two.
135
#[stable(feature = "alloc_layout", since = "1.28.0")]
136
#[rustc_const_stable(feature = "const_alloc_layout_size_align", since = "1.50.0")]
137
#[must_use = "this returns the minimum alignment, \
0 commit comments