Trait SplitArrayRawMut

Source
pub trait SplitArrayRawMut<const LEN: usize> {
    type Output<const OUT_SIZE: usize>: SplitArrayRawMut<OUT_SIZE>;

    // Required method
    unsafe fn split_arr_raw_mut<const LEFT: usize>(
        self,
    ) -> (Self::Output<LEFT>, Self::Output<{ _ }>)
       where [(); { _ }]:;
}
Expand description

Raw mutable version of SplitArray.

Required Associated Types§

Source

type Output<const OUT_SIZE: usize>: SplitArrayRawMut<OUT_SIZE>

Required Methods§

Source

unsafe fn split_arr_raw_mut<const LEFT: usize>( self, ) -> (Self::Output<LEFT>, Self::Output<{ _ }>)
where [(); { _ }]:,

Split an array pointer into a pointer to the left half and a pointer to the right half. The sizes of the halves are validated at compile time.

§Safety

self must be valid.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T, const LEN: usize> SplitArrayRawMut<LEN> for *mut [T; LEN]

Source§

type Output<const OUT_SIZE: usize> = *mut [T; OUT_SIZE]

Source§

unsafe fn split_arr_raw_mut<const LEFT: usize>( self, ) -> (*mut [T; LEFT], *mut [T; { _ }])
where [(); { _ }]:,

Implementors§