Skip to content

Commit

Permalink
Rollup merge of #61273 - RalfJung:maybe-uninit, r=Centril
Browse files Browse the repository at this point in the history
mention that MaybeUninit is a bit like Option
  • Loading branch information
Centril committed May 28, 2019
2 parents 2d01c91 + 2bf80cf commit 9121a73
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libcore/mem.rs
Expand Up @@ -966,6 +966,9 @@ impl<T: ?Sized> DerefMut for ManuallyDrop<T> {
///
/// The compiler then knows to not make any incorrect assumptions or optimizations on this code.
///
/// You can think of `MaybeUninit<T>` as being a bit like `Option<T>` but without
/// any of the run-time tracking and without any of the safety checks.
///
/// ## out-pointers
///
/// You can use `MaybeUninit<T>` to implement "out-pointers": instead of returning data
Expand Down

0 comments on commit 9121a73

Please sign in to comment.