[−][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> DefaultPositioned for SliceStream<'a, T>
[src]
type Positioner = IndexPositioner
impl<'a, T> Positioned for SliceStream<'a, T> where
T: PartialEq + 'a,
[src]
T: PartialEq + 'a,
impl<'a, T> StreamOnce for SliceStream<'a, T> where
T: PartialEq + 'a,
[src]
T: PartialEq + 'a,
type Item = &'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::Item
for this type. Read more
type Position = PointerOffset
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
fn uncons(&mut self) -> Result<&'a T, StreamErrorFor<Self>>
[src]
fn is_partial(&self) -> bool
[src]
Returns true
if this stream only contains partial input. Read more
impl<'a, T> Resetable for SliceStream<'a, T>
[src]
impl<'a, T> RangeStreamOnce for SliceStream<'a, T> where
T: PartialEq + 'a,
[src]
T: PartialEq + 'a,
fn uncons_range(&mut self, size: usize) -> Result<&'a [T], StreamErrorFor<Self>>
[src]
fn uncons_while<F>(&mut self, f: F) -> Result<&'a [T], StreamErrorFor<Self>> where
F: FnMut(Self::Item) -> bool,
[src]
F: FnMut(Self::Item) -> bool,
fn uncons_while1<F>(
&mut self,
f: F
) -> FastResult<Self::Range, StreamErrorFor<Self>> where
F: FnMut(Self::Item) -> bool,
[src]
&mut self,
f: F
) -> FastResult<Self::Range, StreamErrorFor<Self>> where
F: FnMut(Self::Item) -> bool,
fn distance(&self, end: &Self) -> usize
[src]
impl<'a, T> FullRangeStream for SliceStream<'a, T> where
T: PartialEq + 'a,
[src]
T: PartialEq + 'a,
impl<'a, T: PartialEq + 'a> PartialEq<SliceStream<'a, T>> for SliceStream<'a, T>
[src]
fn eq(&self, other: &SliceStream<'a, T>) -> bool
[src]
fn ne(&self, other: &SliceStream<'a, T>) -> bool
[src]
impl<'a, T: Ord + 'a> Ord for SliceStream<'a, T>
[src]
fn cmp(&self, other: &SliceStream<'a, T>) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
impl<'a, T> Clone for SliceStream<'a, T>
[src]
fn clone(&self) -> SliceStream<'a, T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a, T: Eq + 'a> Eq for SliceStream<'a, T>
[src]
impl<'a, T: Copy + 'a> Copy for SliceStream<'a, T>
[src]
impl<'a, T: PartialOrd + 'a> PartialOrd<SliceStream<'a, T>> for SliceStream<'a, T>
[src]
fn partial_cmp(&self, other: &SliceStream<'a, T>) -> Option<Ordering>
[src]
fn lt(&self, other: &SliceStream<'a, T>) -> bool
[src]
fn le(&self, other: &SliceStream<'a, T>) -> bool
[src]
fn gt(&self, other: &SliceStream<'a, T>) -> bool
[src]
fn ge(&self, other: &SliceStream<'a, T>) -> bool
[src]
impl<'a, T: Debug + 'a> Debug for SliceStream<'a, T>
[src]
Auto Trait Implementations
impl<'a, T> Send for SliceStream<'a, T> where
T: Sync,
T: Sync,
impl<'a, T> Sync for SliceStream<'a, T> where
T: Sync,
T: Sync,
Blanket Implementations
impl<I> Stream for I where
I: StreamOnce + Positioned + Resetable,
<I as StreamOnce>::Error: ParseError<<I as StreamOnce>::Item, <I as StreamOnce>::Range, <I as StreamOnce>::Position>,
[src]
I: StreamOnce + Positioned + Resetable,
<I as StreamOnce>::Error: ParseError<<I as StreamOnce>::Item, <I as StreamOnce>::Range, <I as StreamOnce>::Position>,
impl<I> RangeStream for I where
I: RangeStreamOnce + Stream,
[src]
I: RangeStreamOnce + Stream,
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
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]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
ⓘImportant traits for &'a mut Wfn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,