pub struct MappedArraySlice<T> { /* private fields */ }Expand description
Provides a mapped view of an underlying slice, selecting arbitrary indices from the source array.
Implementations§
Source§impl<T> MappedArraySlice<T>
impl<T> MappedArraySlice<T>
Sourcepub fn new(data: &ArraySlice<T>, map: &ArraySlice<i32>) -> Self
pub fn new(data: &ArraySlice<T>, map: &ArraySlice<i32>) -> Self
Creates a view of the data slice through the map slice.
In a debug build, panics when the map is longer than the data.
Auto Trait Implementations§
impl<T> !RefUnwindSafe for MappedArraySlice<T>
impl<T> !Send for MappedArraySlice<T>
impl<T> !Sync for MappedArraySlice<T>
impl<T> !UnwindSafe for MappedArraySlice<T>
impl<T> Freeze for MappedArraySlice<T>where
ArraySlice<T>: Freeze,
impl<T> Unpin for MappedArraySlice<T>where
ArraySlice<T>: Unpin,
impl<T> UnsafeUnpin for MappedArraySlice<T>where
ArraySlice<T>: UnsafeUnpin,
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more