[−][src]Struct trk_io::ArraySequence
Fields
offsets: Vec<usize>
data: Vec<T>
Methods
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]
P: FnMut(&[T]) -> bool,
T: Clone,
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> Extend<T> for ArraySequence<T>
[src]
fn extend<I: IntoIterator<Item = T>>(&mut self, iter: I)
[src]
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?
fn into_iter(self) -> Self::IntoIter
[src]
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?
fn into_iter(self) -> Self::IntoIter
[src]
impl<T: Clone> Clone for ArraySequence<T>
[src]
fn clone(&self) -> ArraySequence<T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T> Default for ArraySequence<T>
[src]
impl<T: PartialEq> PartialEq<ArraySequence<T>> for ArraySequence<T>
[src]
fn eq(&self, other: &ArraySequence<T>) -> bool
[src]
fn ne(&self, other: &ArraySequence<T>) -> bool
[src]
impl<T> Index<usize> for ArraySequence<T>
[src]
type Output = [T]
The returned type after indexing.
fn index<'a>(&'a self, i: usize) -> &'a Self::Output
[src]
impl<T> StructuralPartialEq for ArraySequence<T>
[src]
Auto Trait Implementations
impl<T> Send for ArraySequence<T> where
T: Send,
T: Send,
impl<T> Sync for ArraySequence<T> where
T: Sync,
T: Sync,
impl<T> Unpin for ArraySequence<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for ArraySequence<T> where
T: UnwindSafe,
T: UnwindSafe,
impl<T> RefUnwindSafe for ArraySequence<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,