Struct trk_io::ArraySequence [−][src]
Fields
offsets: Vec<usize>
data: Vec<T>
Methods
impl<T> ArraySequence<T>
[src]
impl<T> ArraySequence<T>
pub fn empty() -> ArraySequence<T>
[src]
pub fn empty() -> ArraySequence<T>
pub fn with_capacity(n: usize) -> ArraySequence<T>
[src]
pub fn with_capacity(n: usize) -> ArraySequence<T>
pub fn new(lengths: Vec<usize>, data: Vec<T>) -> ArraySequence<T>
[src]
pub fn new(lengths: Vec<usize>, data: Vec<T>) -> ArraySequence<T>
pub fn push(&mut self, val: T)
[src]
pub fn push(&mut self, val: T)
pub fn nb_push_done(&self) -> usize
[src]
pub fn nb_push_done(&self) -> usize
pub fn end_push(&mut self)
[src]
pub fn end_push(&mut self)
pub fn is_empty(&self) -> bool
[src]
pub fn is_empty(&self) -> bool
Returns true
if the array contains no elements.
The array will be considered non empty if there was one or more
push()
, even without an end_push()
. Use len()
instead to ignore
all pushed elements.
pub fn len(&self) -> usize
[src]
pub fn len(&self) -> usize
pub fn length_of_array(&self, i: usize) -> usize
[src]
pub fn length_of_array(&self, i: usize) -> usize
Same as obj[i].len(), without building a slice
pub fn filter<P>(&self, predicate: &mut P) -> ArraySequence<T> where
P: FnMut(&[T]) -> bool,
T: Clone,
[src]
pub fn filter<P>(&self, predicate: &mut P) -> ArraySequence<T> where
P: FnMut(&[T]) -> bool,
T: Clone,
pub fn iter(&self) -> ArraySequenceIterator<T>
[src]
pub fn iter(&self) -> ArraySequenceIterator<T>
pub fn iter_mut(&mut self) -> ArraySequenceIteratorMut<T>
[src]
pub fn iter_mut(&mut self) -> ArraySequenceIteratorMut<T>
impl<T: Clone> ArraySequence<T>
[src]
impl<T: Clone> ArraySequence<T>
pub fn extend_from_slice(&mut self, other: &[T])
[src]
pub fn extend_from_slice(&mut self, other: &[T])
Trait Implementations
impl<T: Clone> Clone for ArraySequence<T>
[src]
impl<T: Clone> Clone for ArraySequence<T>
fn clone(&self) -> ArraySequence<T>
[src]
fn clone(&self) -> ArraySequence<T>
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)
Performs copy-assignment from source
. Read more
impl<T: PartialEq> PartialEq for ArraySequence<T>
[src]
impl<T: PartialEq> PartialEq for ArraySequence<T>
fn eq(&self, other: &ArraySequence<T>) -> bool
[src]
fn eq(&self, other: &ArraySequence<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ArraySequence<T>) -> bool
[src]
fn ne(&self, other: &ArraySequence<T>) -> bool
This method tests for !=
.
impl<'a, T> IntoIterator for &'a ArraySequence<T>
[src]
impl<'a, T> IntoIterator for &'a ArraySequence<T>
type Item = &'a [T]
The type of the elements being iterated over.
type IntoIter = ArraySequenceIterator<'a, T>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
fn into_iter(self) -> Self::IntoIter
Creates an iterator from a value. Read more
impl<'a, T> IntoIterator for &'a mut ArraySequence<T>
[src]
impl<'a, T> IntoIterator for &'a mut ArraySequence<T>
type Item = &'a mut [T]
The type of the elements being iterated over.
type IntoIter = ArraySequenceIteratorMut<'a, T>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
fn into_iter(self) -> Self::IntoIter
Creates an iterator from a value. Read more
impl<T> Index<usize> for ArraySequence<T>
[src]
impl<T> Index<usize> for ArraySequence<T>
type Output = [T]
The returned type after indexing.
fn index<'a>(&'a self, i: usize) -> &'a Self::Output
[src]
fn index<'a>(&'a self, i: usize) -> &'a Self::Output
Performs the indexing (container[index]
) operation.
impl<T> Extend<T> for ArraySequence<T>
[src]
impl<T> Extend<T> for ArraySequence<T>
fn extend<I: IntoIterator<Item = T>>(&mut self, iter: I)
[src]
fn extend<I: IntoIterator<Item = T>>(&mut self, iter: I)
Extends a collection with the contents of an iterator. Read more
Auto Trait Implementations
impl<T> Send for ArraySequence<T> where
T: Send,
impl<T> Send for ArraySequence<T> where
T: Send,
impl<T> Sync for ArraySequence<T> where
T: Sync,
impl<T> Sync for ArraySequence<T> where
T: Sync,