pub struct ArrayView<'a> { /* private fields */ }
Expand description
A view of a subset of an array.
This class has various hidden unsafe functions which are used internally.
Implementations§
source§impl<'a> ArrayView<'a>
impl<'a> ArrayView<'a>
sourcepub fn new(
bytes: &'a mut [u8],
shape: &'a [u64],
subset: ArraySubset
) -> Result<Self, ArrayViewCreateError>
pub fn new( bytes: &'a mut [u8], shape: &'a [u64], subset: ArraySubset ) -> Result<Self, ArrayViewCreateError>
sourcepub fn subset(&self) -> &ArraySubset
pub fn subset(&self) -> &ArraySubset
Return the subset of the array view.
sourcepub fn array_shape(&self) -> &[u64]
pub fn array_shape(&self) -> &[u64]
Return the array shape of the array view.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ArrayView<'a>
impl<'a> !RefUnwindSafe for ArrayView<'a>
impl<'a> Send for ArrayView<'a>
impl<'a> Sync for ArrayView<'a>
impl<'a> Unpin for ArrayView<'a>
impl<'a> !UnwindSafe for ArrayView<'a>
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