We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5371ddf commit 346920cCopy full SHA for 346920c
src/liballoc/boxed.rs
@@ -2,7 +2,8 @@
2
//!
3
//! [`Box<T>`], casually referred to as a 'box', provides the simplest form of
4
//! heap allocation in Rust. Boxes provide ownership for this allocation, and
5
-//! drop their contents when they go out of scope.
+//! drop their contents when they go out of scope. Boxes also ensure that they
6
+//! never allocate more than `isize::MAX` bytes.
7
8
//! # Examples
9
src/liballoc/vec.rs
@@ -4,6 +4,8 @@
//! Vectors have `O(1)` indexing, amortized `O(1)` push (to the end) and
//! `O(1)` pop (from the end).
+//! Vectors ensure they never allocate more than `isize::MAX` bytes.
+//!
10
11
//! You can explicitly create a [`Vec<T>`] with [`new`]:
0 commit comments