There was an error while loading. Please reload this page.
Err
1 parent ca9f572 commit 765a241Copy full SHA for 765a241
library/core/src/init.rs
@@ -73,7 +73,11 @@ pub unsafe trait Init<T: ?Sized + Pointee> {
73
/// Writes a valid value of type `T` to `slot` or fails.
74
///
75
/// If this call returns [`Ok`], then `slot` is guaranteed to contain a valid
76
- /// value of type `T`. If `T` is unsized, then `slot` may be combined with
+ /// value of type `T`.
77
+ /// Otherwise, in case the result is an [`Err`], the implementation must guarantee
78
+ /// that the `slot` may be repurposed for future reuse.
79
+ ///
80
+ /// If `T` is unsized, then `slot` may be combined with
81
/// the metadata to obtain a valid pointer to the value.
82
83
/// Note that `slot` should be thought of as a `*mut T`. A unit type is used
0 commit comments