Struct flatdata::MultiArrayView [−][src]
pub struct MultiArrayView<'a, Idx: 'a, Ts: 'a> { /* fields omitted */ }
A read-only view on a multivector.
For the detailed description of multivector and examples, cf.
MultiVector
.
Methods
impl<'a, Idx, Ts> MultiArrayView<'a, Idx, Ts> where
Idx: Index,
Ts: VariadicStruct,
[src]
impl<'a, Idx, Ts> MultiArrayView<'a, Idx, Ts> where
Idx: Index,
Ts: VariadicStruct,
pub fn new(index: ArrayView<'a, Idx>, data_mem_descr: &MemoryDescriptor) -> Self
[src]
pub fn new(index: ArrayView<'a, Idx>, data_mem_descr: &MemoryDescriptor) -> Self
Creates a new MultiArrayView
to the data at the given address.
The returned array view does not own the data.
pub fn len(&self) -> usize
[src]
pub fn len(&self) -> usize
Number of indexed items in the array.
Note that this is not the total number of overall elements stored in the array. An item may be also empty.
pub fn is_empty(&self) -> bool
[src]
pub fn is_empty(&self) -> bool
Returns true
if no item is stored in the array.
pub fn at(&self, index: usize) -> MultiArrayViewItemIter<'a, Ts>
[src]
pub fn at(&self, index: usize) -> MultiArrayViewItemIter<'a, Ts>
Returns a read-only iterator to the elements of the item at position
index
.
Panics
Panics if index is greater than or equal to MultiArrayView::len()
.
pub fn iter(&'a self) -> MultiArrayViewIter<Idx, Ts>
[src]
pub fn iter(&'a self) -> MultiArrayViewIter<Idx, Ts>
Returns an iterator through the indexed items of the array.
Trait Implementations
impl<'a, Idx: Clone + 'a, Ts: Clone + 'a> Clone for MultiArrayView<'a, Idx, Ts>
[src]
impl<'a, Idx: Clone + 'a, Ts: Clone + 'a> Clone for MultiArrayView<'a, Idx, Ts>
fn clone(&self) -> MultiArrayView<'a, Idx, Ts>
[src]
fn clone(&self) -> MultiArrayView<'a, Idx, Ts>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<'a, Idx, Ts> Debug for MultiArrayView<'a, Idx, Ts> where
Idx: Index,
Ts: VariadicStruct,
[src]
impl<'a, Idx, Ts> Debug for MultiArrayView<'a, Idx, Ts> where
Idx: Index,
Ts: VariadicStruct,
Auto Trait Implementations
impl<'a, Idx, Ts> !Send for MultiArrayView<'a, Idx, Ts>
impl<'a, Idx, Ts> !Send for MultiArrayView<'a, Idx, Ts>
impl<'a, Idx, Ts> !Sync for MultiArrayView<'a, Idx, Ts>
impl<'a, Idx, Ts> !Sync for MultiArrayView<'a, Idx, Ts>