[−][src]Struct flatdata::MultiArrayView
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: for<'b> IndexStruct<'b>,
Ts: for<'b> VariadicStruct<'b>,
[src]
impl<'a, Idx, Ts> MultiArrayView<'a, Idx, Ts> where
Idx: for<'b> IndexStruct<'b>,
Ts: for<'b> VariadicStruct<'b>,
pub fn new(index: ArrayView<'a, Idx>, data_mem_descr: &'a [u8]) -> Self | [src] |
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] |
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] |
Returns true
if no item is stored in the array.
pub fn at(&self, index: usize) -> MultiArrayViewItemIter<'a, Ts> | [src] |
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(&self) -> MultiArrayViewIter<'a, Idx, Ts> | [src] |
Returns an iterator through the indexed items of the array.
Trait Implementations
impl<'a, Idx: Clone, Ts: Clone> Clone for MultiArrayView<'a, Idx, Ts> where
Idx: for<'b> IndexStruct<'b>,
Ts: for<'b> VariadicStruct<'b>,
[src]
impl<'a, Idx: Clone, Ts: Clone> Clone for MultiArrayView<'a, Idx, Ts> where
Idx: for<'b> IndexStruct<'b>,
Ts: for<'b> VariadicStruct<'b>,
fn clone(&self) -> MultiArrayView<'a, Idx, Ts> | [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: for<'b> IndexStruct<'b>,
Ts: for<'b> VariadicStruct<'b>,
[src]
impl<'a, Idx, Ts> Debug for MultiArrayView<'a, Idx, Ts> where
Idx: for<'b> IndexStruct<'b>,
Ts: for<'b> VariadicStruct<'b>,
Auto Trait Implementations
impl<'a, Idx, Ts> Send for MultiArrayView<'a, Idx, Ts> where
Idx: Send,
Ts: Send,
impl<'a, Idx, Ts> Send for MultiArrayView<'a, Idx, Ts> where
Idx: Send,
Ts: Send,
impl<'a, Idx, Ts> Sync for MultiArrayView<'a, Idx, Ts> where
Idx: Sync,
Ts: Sync,
impl<'a, Idx, Ts> Sync for MultiArrayView<'a, Idx, Ts> where
Idx: Sync,
Ts: Sync,
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |