We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 139f63a + a9b0966 commit 838b948Copy full SHA for 838b948
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