Struct array_segments::ArraySegments
source · pub struct ArraySegments<T, const SEGMENT_LENGTHS: &'static [usize]>(/* private fields */);Implementations§
source§impl<T, const SEGMENT_LENGTHS: &'static [usize]> ArraySegments<T, SEGMENT_LENGTHS>
impl<T, const SEGMENT_LENGTHS: &'static [usize]> ArraySegments<T, SEGMENT_LENGTHS>
pub const SEGMENTS: usize = _
pub const SEGMENT_LENGTHS: [usize; { _ }] = _
pub const SERIALIZED_LENGTH: usize = _
pub const fn split_lengths(mid: usize) -> (&'static [usize], &'static [usize])
pub const fn new(array: [T; { _ }]) -> Self
pub const fn serialize_arrays(self) -> [T; { _ }]
pub const fn as_serialize_arrays(&self) -> &[T; { _ }]
pub const fn as_serialize_arrays_mut(&mut self) -> &mut [T; { _ }]
pub const fn as_ptr(&self) -> *const T
pub const fn as_mut_ptr(&mut self) -> *mut T
pub fn each_offset() -> [usize; { _ }]
pub fn each_ptr(&self) -> [*const T; { _ }]
pub fn each_mut_ptr(&mut self) -> [*mut T; { _ }]
pub fn each_slice(&self) -> [&[T]; { _ }]
pub fn each_slice_mut(&mut self) -> [&mut [T]; { _ }]
pub fn get_slice(&self, index: usize) -> Option<&[T]>
pub fn get_slice_mut(&mut self, index: usize) -> Option<&mut [T]>
pub const fn reinterpret_lengths<const S: usize, const P: &'static [usize]>( self ) -> ArraySegments<T, { P }>
pub const fn reinterpret_lengths_ref<const S: usize, const P: &'static [usize]>( &self ) -> &ArraySegments<T, { P }>
pub const fn reinterpret_lengths_mut<const S: usize, const P: &'static [usize]>( &mut self ) -> &mut ArraySegments<T, { P }>
pub const fn reformulate_lengths<const S: usize, const P: &'static [usize]>( self ) -> ArraySegments<T, { P }>
pub const fn reformulate_lengths_ref<const S: usize, const P: &'static [usize]>( &self ) -> &ArraySegments<T, { P }>
pub const fn reformulate_lengths_mut<const S: usize, const P: &'static [usize]>( &mut self ) -> &mut ArraySegments<T, { P }>
Trait Implementations§
source§impl<'a, T, const PART_LENGTHS: &'static [usize]> IntoIterator for &'a ArraySegments<T, PART_LENGTHS>
impl<'a, T, const PART_LENGTHS: &'static [usize]> IntoIterator for &'a ArraySegments<T, PART_LENGTHS>
source§impl<'a, T, const PART_LENGTHS: &'static [usize]> IntoIterator for &'a mut ArraySegments<T, PART_LENGTHS>
impl<'a, T, const PART_LENGTHS: &'static [usize]> IntoIterator for &'a mut ArraySegments<T, PART_LENGTHS>
Auto Trait Implementations§
impl<T, const SEGMENT_LENGTHS: &'static [usize]> RefUnwindSafe for ArraySegments<T, SEGMENT_LENGTHS>where
T: RefUnwindSafe,
impl<T, const SEGMENT_LENGTHS: &'static [usize]> Send for ArraySegments<T, SEGMENT_LENGTHS>where
T: Send,
impl<T, const SEGMENT_LENGTHS: &'static [usize]> Sync for ArraySegments<T, SEGMENT_LENGTHS>where
T: Sync,
impl<T, const SEGMENT_LENGTHS: &'static [usize]> Unpin for ArraySegments<T, SEGMENT_LENGTHS>where
T: Unpin,
impl<T, const SEGMENT_LENGTHS: &'static [usize]> UnwindSafe for ArraySegments<T, SEGMENT_LENGTHS>where
T: UnwindSafe,
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