Struct socket2::MaybeUninitSlice [−][src]
#[repr(transparent)]pub struct MaybeUninitSlice<'a>(_);
A version of IoSliceMut
that allows the buffer to be uninitialised.
Implementations
impl<'a> MaybeUninitSlice<'a>
[src]
impl<'a> MaybeUninitSlice<'a>
[src]pub fn new(buf: &'a mut [MaybeUninit<u8>]) -> MaybeUninitSlice<'a>
[src]
Creates a new MaybeUninitSlice
wrapping a byte slice.
Panics
Panics on Windows if the slice is larger than 4GB.
Trait Implementations
impl<'a> Deref for MaybeUninitSlice<'a>
[src]
impl<'a> Deref for MaybeUninitSlice<'a>
[src]impl<'a> DerefMut for MaybeUninitSlice<'a>
[src]
impl<'a> DerefMut for MaybeUninitSlice<'a>
[src]