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

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

Raw version of SplitArray.

Required Associated Types§

source

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

The result of a split.

Required Methods§

source

unsafe fn split_arr_raw<const LEFT: usize>( self ) -> (Self::Output<LEFT>, Self::Output<{ _ }>)
where (): True<{ _ }>,

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.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

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

§

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

source§

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

Implementors§