[][src]Struct trk_io::ArraySequence

pub struct ArraySequence<T> {
    pub offsets: Vec<usize>,
    pub data: Vec<T>,
}

Fields

offsets: Vec<usize>data: Vec<T>

Implementations

impl<T> ArraySequence<T>[src]

pub fn empty() -> ArraySequence<T>[src]

pub fn with_capacity(n: usize) -> ArraySequence<T>[src]

pub fn new(lengths: Vec<usize>, data: Vec<T>) -> ArraySequence<T>[src]

pub fn push(&mut self, val: T)[src]

pub fn nb_push_done(&self) -> usize[src]

pub fn end_push(&mut self)[src]

pub fn is_empty(&self) -> bool[src]

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 length_of_array(&self, i: usize) -> usize[src]

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 iter(&self) -> ArraySequenceIterator<T>[src]

pub fn iter_mut(&mut self) -> ArraySequenceIteratorMut<T>[src]

impl<T: Clone> ArraySequence<T>[src]

pub fn extend_from_slice(&mut self, other: &[T])[src]

Trait Implementations

impl<T: Clone> Clone for ArraySequence<T>[src]

impl<T> Default for ArraySequence<T>[src]

impl<T> Extend<T> for ArraySequence<T>[src]

impl<T> Index<usize> for ArraySequence<T>[src]

type Output = [T]

The returned type after indexing.

impl<'a, T> IntoIterator for &'a ArraySequence<T>[src]

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?

impl<'a, T> IntoIterator for &'a mut ArraySequence<T>[src]

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?

impl<T: PartialEq> PartialEq<ArraySequence<T>> for ArraySequence<T>[src]

impl<T> StructuralPartialEq for ArraySequence<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for ArraySequence<T> where
    T: RefUnwindSafe

impl<T> Send for ArraySequence<T> where
    T: Send

impl<T> Sync for ArraySequence<T> where
    T: Sync

impl<T> Unpin for ArraySequence<T> where
    T: Unpin

impl<T> UnwindSafe for ArraySequence<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,