[−][src]Struct lark_collections::Seq
Methods
impl<T> Seq<T>
[src]
impl<T> Seq<T>
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 | [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]
impl<T: PartialEq> PartialEq<Seq<T>> for Seq<T>
fn eq(&self, other: &Seq<T>) -> bool | [src] |
| 1.0.0 [src] |
This method tests for !=
.
impl<T: PartialEq> PartialEq<[T]> for Seq<T>
[src]
impl<T: PartialEq> PartialEq<[T]> for Seq<T>
fn eq(&self, other: &[T]) -> bool | [src] |
| 1.0.0 [src] |
This method tests for !=
.
impl<T: PartialEq> PartialEq<Vec<T>> for Seq<T>
[src]
impl<T: PartialEq> PartialEq<Vec<T>> for Seq<T>
fn eq(&self, other: &Vec<T>) -> bool | [src] |
| 1.0.0 [src] |
This method tests for !=
.
impl<A: ?Sized, T: PartialEq, '_> PartialEq<&'_ A> for Seq<T> where
Seq<T>: PartialEq<A>,
[src]
impl<A: ?Sized, T: PartialEq, '_> PartialEq<&'_ A> for Seq<T> where
Seq<T>: PartialEq<A>,
fn eq(&self, other: &&A) -> bool | [src] |
| 1.0.0 [src] |
This method tests for !=
.
impl<T: Eq> Eq for Seq<T>
[src]
impl<T: Eq> Eq for Seq<T>
impl<T> Clone for Seq<T>
[src]
impl<T> Clone for Seq<T>
fn clone(&self) -> Self | [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<Arc<Vec<T>>> for Seq<T>
impl<T> From<Vec<T>> for Seq<T>
[src]
impl<T> From<Vec<T>> for Seq<T>
impl<T: Clone, '_> From<&'_ [T]> for Seq<T>
[src]
impl<T: Clone, '_> From<&'_ [T]> for Seq<T>
impl<T> Default for Seq<T>
[src]
impl<T> Default for Seq<T>
impl<T, 'seq> IntoIterator for &'seq Seq<T>
[src]
impl<T, 'seq> IntoIterator for &'seq Seq<T>
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.
fn into_iter(self) -> Self::IntoIter | [src] |
impl<T: Clone, 'seq> IntoIterator for &'seq mut Seq<T>
[src]
impl<T: Clone, 'seq> IntoIterator for &'seq mut Seq<T>
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.
fn into_iter(self) -> Self::IntoIter | [src] |
impl<T: Debug> Debug for Seq<T>
[src]
impl<T: Debug> Debug for Seq<T>
impl<T: Hash> Hash for Seq<T>
[src]
impl<T: Hash> Hash for Seq<T>
fn hash<H: Hasher>(&self, state: &mut H) | [src] |
fn hash_slice<H>(data: &[Self], state: &mut H) where | 1.3.0 [src] |
Feeds a slice of this type into the given [Hasher
]. Read more
impl<T> Deref for Seq<T>
[src]
impl<T> Deref for Seq<T>
impl<T: Clone> DerefMut for Seq<T>
[src]
impl<T: Clone> DerefMut for Seq<T>
impl<T> FromIterator<T> for Seq<T>
[src]
impl<T> FromIterator<T> for Seq<T>
fn from_iter<I>(iter: I) -> Self where | [src] |
impl<T: DebugWith> DebugWith for Seq<T>
[src]
impl<T: DebugWith> DebugWith for Seq<T>
fn fmt_with<Cx: ?Sized>(&self, cx: &Cx, fmt: &mut Formatter) -> Result | [src] |
fn debug_with<Cx>(&'me self, cx: &'me Cx) -> DebugCxPair<'me, &'me Self, Cx> where | [src] |
fn into_debug_with<Cx>(self, cx: &'me Cx) -> DebugCxPair<'me, Self, Cx> where | [src] |
Auto Trait Implementations
Blanket Implementations
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> From for T
[src]
impl<T> From for T
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> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [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> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<Q, K> Equivalent for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool | [src] |
impl<Cx, T> FmtWithSpecialized for T where
Cx: ?Sized,
T: Debug + ?Sized,
[src]
impl<Cx, T> FmtWithSpecialized for T where
Cx: ?Sized,
T: Debug + ?Sized,