Struct array_segments::ArraySegments
source · pub struct ArraySegments<T, const SEGMENT_LENGTHS: &'static [usize]>(/* private fields */)
where
[(); { _ }]:;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<T: Clone, const SEGMENT_LENGTHS: &'static [usize]> Clone for ArraySegments<T, SEGMENT_LENGTHS>
impl<T: Clone, const SEGMENT_LENGTHS: &'static [usize]> Clone for ArraySegments<T, SEGMENT_LENGTHS>
source§fn clone(&self) -> ArraySegments<T, SEGMENT_LENGTHS>
fn clone(&self) -> ArraySegments<T, SEGMENT_LENGTHS>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<T, const SEGMENT_LENGTHS: &'static [usize]> Debug for ArraySegments<T, SEGMENT_LENGTHS>
impl<T, const SEGMENT_LENGTHS: &'static [usize]> Debug for ArraySegments<T, SEGMENT_LENGTHS>
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>
source§impl<T: Ord, const SEGMENT_LENGTHS: &'static [usize]> Ord for ArraySegments<T, SEGMENT_LENGTHS>
impl<T: Ord, const SEGMENT_LENGTHS: &'static [usize]> Ord for ArraySegments<T, SEGMENT_LENGTHS>
source§fn cmp(&self, other: &ArraySegments<T, SEGMENT_LENGTHS>) -> Ordering
fn cmp(&self, other: &ArraySegments<T, SEGMENT_LENGTHS>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<T: PartialEq, const SEGMENT_LENGTHS: &'static [usize]> PartialEq for ArraySegments<T, SEGMENT_LENGTHS>
impl<T: PartialEq, const SEGMENT_LENGTHS: &'static [usize]> PartialEq for ArraySegments<T, SEGMENT_LENGTHS>
source§fn eq(&self, other: &ArraySegments<T, SEGMENT_LENGTHS>) -> bool
fn eq(&self, other: &ArraySegments<T, SEGMENT_LENGTHS>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<T: PartialOrd, const SEGMENT_LENGTHS: &'static [usize]> PartialOrd for ArraySegments<T, SEGMENT_LENGTHS>
impl<T: PartialOrd, const SEGMENT_LENGTHS: &'static [usize]> PartialOrd for ArraySegments<T, SEGMENT_LENGTHS>
source§fn partial_cmp(
&self,
other: &ArraySegments<T, SEGMENT_LENGTHS>
) -> Option<Ordering>
fn partial_cmp( &self, other: &ArraySegments<T, SEGMENT_LENGTHS> ) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl<T: Copy, const SEGMENT_LENGTHS: &'static [usize]> Copy for ArraySegments<T, SEGMENT_LENGTHS>
impl<T: Eq, const SEGMENT_LENGTHS: &'static [usize]> Eq for ArraySegments<T, SEGMENT_LENGTHS>
impl<T, const SEGMENT_LENGTHS: &'static [usize]> StructuralPartialEq for ArraySegments<T, SEGMENT_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