pub struct Ia<T: 'static> { /* private fields */ }Implementations§
source§impl<T> Ia<T>
impl<T> Ia<T>
pub const fn new(values: &'static [T], indexes: &'static [usize]) -> Self
pub fn values(&self, i: usize) -> &'static [T]
sourcepub unsafe fn values_unchecked(&self, i: usize) -> &'static [T]
pub unsafe fn values_unchecked(&self, i: usize) -> &'static [T]
Unsafe method to get a subslice of the underlying values.
Safety
The parameter i must satisfy the condition i < self.num_slices().
sourcepub fn num_slices(&self) -> usize
pub fn num_slices(&self) -> usize
Get the number of slices in this indexed array.
Trait Implementations§
impl<T: Copy + 'static> Copy for Ia<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Ia<T>where T: RefUnwindSafe,
impl<T> Send for Ia<T>where T: Sync,
impl<T> Sync for Ia<T>where T: Sync,
impl<T> Unpin for Ia<T>
impl<T> UnwindSafe for Ia<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