[][src]Struct lark_collections::Seq

pub struct Seq<T> { /* fields omitted */ }

Methods

impl<T> Seq<T>
[src]

pub fn select(&mut self, range: Range<usize>)
[src]

Modifies this restrict to a subset of its current range.

pub fn extract(&self, range: Range<usize>) -> Self
[src]

Extract a new Text that is a subset of an old Text -- text.extract(1..3) is similar to &foo[1..3] except that it gives back an owned value instead of a borrowed value.

pub fn extend<I>(&mut self, iter: I) where
    I: IntoIterator<Item = T>,
    T: Clone
[src]

Extend this Seq. Note that seqs from which this was cloned are not affected.

Trait Implementations

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

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

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

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl<T: PartialEq> PartialEq<Vec<T>> for Seq<T>
[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl<A: ?Sized, T: PartialEq, '_> PartialEq<&'_ A> for Seq<T> where
    Seq<T>: PartialEq<A>, 
[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl<T: Eq> Eq for Seq<T>
[src]

impl<T> Clone for Seq<T>
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T> From<Arc<Vec<T>>> for Seq<T>
[src]

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

impl<T: Clone, '_> From<&'_ [T]> for Seq<T>
[src]

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

impl<T, 'seq> IntoIterator for &'seq Seq<T>
[src]

type IntoIter = <&'seq [T] as IntoIterator>::IntoIter

Which kind of iterator are we turning this into?

type Item = <&'seq [T] as IntoIterator>::Item

The type of the elements being iterated over.

impl<T: Clone, 'seq> IntoIterator for &'seq mut Seq<T>
[src]

type IntoIter = <&'seq mut [T] as IntoIterator>::IntoIter

Which kind of iterator are we turning this into?

type Item = <&'seq mut [T] as IntoIterator>::Item

The type of the elements being iterated over.

impl<T: Debug> Debug for Seq<T>
[src]

impl<T: Hash> Hash for Seq<T>
[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl<T> Deref for Seq<T>
[src]

type Target = [T]

The resulting type after dereferencing.

impl<T: Clone> DerefMut for Seq<T>
[src]

impl<T> FromIterator<T> for Seq<T>
[src]

impl<T: DebugWith> DebugWith for Seq<T>
[src]

fn debug_with<Cx>(&'me self, cx: &'me Cx) -> DebugCxPair<'me, &'me Self, Cx> where
    Cx: ?Sized
[src]

fn into_debug_with<Cx>(self, cx: &'me Cx) -> DebugCxPair<'me, Self, Cx> where
    Cx: ?Sized
[src]

Auto Trait Implementations

impl<T> Send for Seq<T> where
    T: Send + Sync

impl<T> Sync for Seq<T> where
    T: Send + Sync

Blanket Implementations

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

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

type Owned = T

impl<T> From for T
[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<Q, K> Equivalent for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<Cx, T> FmtWithSpecialized for T where
    Cx: ?Sized,
    T: Debug + ?Sized
[src]