#[repr(C)]pub struct RawSliceMut<T> { /* private fields */ }Implementations§
Source§impl<T> RawSliceMut<T>
impl<T> RawSliceMut<T>
Source§impl<T> RawSliceMut<RawSlice<T>>
impl<T> RawSliceMut<RawSlice<T>>
Sourcepub unsafe fn from_slices(slices: *mut [&[T]]) -> Self
pub unsafe fn from_slices(slices: *mut [&[T]]) -> Self
Converts a slice of slices of [T] into RawSliceMut<RawSlice<T>>
§Safety
slices becomes invaild after use
as it is going to be reused as a memory location for creating Self
making this unexpensive but dangerous
O(N) expect if the Layout of RawSlice is equal to the Layout of rust slices, and it has been optimized it is O(1)
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for RawSliceMut<T>
impl<T> RefUnwindSafe for RawSliceMut<T>where
T: RefUnwindSafe,
impl<T> !Send for RawSliceMut<T>
impl<T> !Sync for RawSliceMut<T>
impl<T> Unpin for RawSliceMut<T>
impl<T> UnwindSafe for RawSliceMut<T>where
T: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more