[−][src]Struct combine::stream::SliceStream
Newtype for constructing a stream from a slice where the items in the slice are not copyable.
Trait Implementations
impl<'a, T> Clone for SliceStream<'a, T>
[src]
pub fn clone(&self) -> SliceStream<'a, T>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a, T: Copy> Copy for SliceStream<'a, T>
[src]
impl<'a, T: Debug> Debug for SliceStream<'a, T>
[src]
impl<'a, T> DefaultPositioned for SliceStream<'a, T>
[src]
type Positioner = IndexPositioner
impl<'a, T: Eq> Eq for SliceStream<'a, T>
[src]
impl<'a, T: Ord> Ord for SliceStream<'a, T>
[src]
pub fn cmp(&self, other: &SliceStream<'a, T>) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl<'a, T: PartialEq> PartialEq<SliceStream<'a, T>> for SliceStream<'a, T>
[src]
pub fn eq(&self, other: &SliceStream<'a, T>) -> bool
[src]
pub fn ne(&self, other: &SliceStream<'a, T>) -> bool
[src]
impl<'a, T: PartialOrd> PartialOrd<SliceStream<'a, T>> for SliceStream<'a, T>
[src]
pub fn partial_cmp(&self, other: &SliceStream<'a, T>) -> Option<Ordering>
[src]
pub fn lt(&self, other: &SliceStream<'a, T>) -> bool
[src]
pub fn le(&self, other: &SliceStream<'a, T>) -> bool
[src]
pub fn gt(&self, other: &SliceStream<'a, T>) -> bool
[src]
pub fn ge(&self, other: &SliceStream<'a, T>) -> bool
[src]
impl<'a, T> Positioned for SliceStream<'a, T> where
T: PartialEq + 'a,
[src]
T: PartialEq + 'a,
impl<'a, T> RangeStreamOnce for SliceStream<'a, T> where
T: PartialEq + 'a,
[src]
T: PartialEq + 'a,
pub fn uncons_range(
&mut self,
size: usize
) -> Result<&'a [T], StreamErrorFor<Self>>
[src]
&mut self,
size: usize
) -> Result<&'a [T], StreamErrorFor<Self>>
pub fn uncons_while<F>(&mut self, f: F) -> Result<&'a [T], StreamErrorFor<Self>> where
F: FnMut(Self::Token) -> bool,
[src]
F: FnMut(Self::Token) -> bool,
pub fn uncons_while1<F>(
&mut self,
f: F
) -> ParseResult<Self::Range, StreamErrorFor<Self>> where
F: FnMut(Self::Token) -> bool,
[src]
&mut self,
f: F
) -> ParseResult<Self::Range, StreamErrorFor<Self>> where
F: FnMut(Self::Token) -> bool,
pub fn distance(&self, end: &Self) -> usize
[src]
pub fn range(&self) -> Self::Range
[src]
impl<'a, T> ResetStream for SliceStream<'a, T> where
Self: StreamOnce,
[src]
Self: StreamOnce,
type Checkpoint = Self
pub fn checkpoint(&self) -> Self
[src]
pub fn reset(&mut self, checkpoint: Self) -> Result<(), Self::Error>
[src]
impl<'a, T> StreamOnce for SliceStream<'a, T> where
T: PartialEq + 'a,
[src]
T: PartialEq + 'a,
type Token = &'a T
The type of items which is yielded from this stream.
type Range = &'a [T]
The type of a range of items yielded from this stream.
Types which do not a have a way of yielding ranges of items should just use the
Self::Token
for this type. Read more
type Position = PointerOffset<[T]>
Type which represents the position in a stream.
Ord
is required to allow parsers to determine which of two positions are further ahead. Read more
type Error = UnexpectedParse
pub fn uncons(&mut self) -> Result<&'a T, StreamErrorFor<Self>>
[src]
pub fn is_partial(&self) -> bool
[src]
impl<'a, T> StructuralEq for SliceStream<'a, T>
[src]
impl<'a, T> StructuralPartialEq for SliceStream<'a, T>
[src]
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for SliceStream<'a, T> where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
impl<'a, T> Send for SliceStream<'a, T> where
T: Sync,
[src]
T: Sync,
impl<'a, T> Sync for SliceStream<'a, T> where
T: Sync,
[src]
T: Sync,
impl<'a, T> Unpin for SliceStream<'a, T>
[src]
impl<'a, T> UnwindSafe for SliceStream<'a, T> where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow(&self) -> &TⓘNotable traits for &'_ mut W
impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;
[src]
Notable traits for &'_ mut W
impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut TⓘNotable traits for &'_ mut W
impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;
[src]
Notable traits for &'_ mut W
impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<Input> RangeStream for Input where
Input: RangeStreamOnce + Stream,
[src]
Input: RangeStreamOnce + Stream,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,