Skip to content

Commit

Permalink
Simplify documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
silvanshade committed Aug 8, 2023
1 parent 8dc9466 commit 210b74b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/new.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,13 @@ pub trait CopyNew: Sized {
/// # Safety
///
/// - the same safety requirements as [`New::new()`] apply with respect to `dst`
/// - `src` must remain in a valid state, and must be unmodified with respect to its data
unsafe fn copy_new(src: &Self, dst: Pin<&mut MaybeUninit<Self>>);
}

pub trait MoveNew: Sized {
/// # Safety
///
/// - the same safety requirements as [`New::new()`] apply with respect to `dst`
/// - `src` must remain in a valid state, but may be modified with respect to its data
unsafe fn move_new(src: Pin<MoveRef<Self>>, dst: Pin<&mut MaybeUninit<Self>>);
}

Expand Down

0 comments on commit 210b74b

Please sign in to comment.