[][src]Struct combine::stream::SliceStream

pub struct SliceStream<'a, T: 'a>(pub &'a [T]);

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]

impl<'a, T> Positioned for SliceStream<'a, T> where
    T: PartialEq + 'a, 
[src]

impl<'a, T> StreamOnce for SliceStream<'a, T> where
    T: PartialEq + 'a, 
[src]

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<[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

fn is_partial(&self) -> bool[src]

Returns true if this stream only contains partial input. Read more

impl<'a, T> ResetStream for SliceStream<'a, T> where
    Self: StreamOnce
[src]

type Checkpoint = Self

impl<'a, T> RangeStreamOnce for SliceStream<'a, T> where
    T: PartialEq + 'a, 
[src]

impl<'a, T> FullRangeStream for SliceStream<'a, T> where
    T: PartialEq + 'a, 
[src]

impl<'a, T: Eq + 'a> Eq for SliceStream<'a, T>[src]

impl<'a, T: Ord + 'a> Ord for SliceStream<'a, T>[src]

fn max(self, other: Self) -> Self1.21.0[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self1.21.0[src]

Compares and returns the minimum of two values. Read more

fn clamp(self, min: Self, max: Self) -> Self[src]

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

Restrict a value to a certain interval. Read more

impl<'a, T: PartialEq + 'a> PartialEq<SliceStream<'a, T>> for SliceStream<'a, T>[src]

impl<'a, T: Copy + 'a> Copy for SliceStream<'a, T>[src]

impl<'a, T> Clone for 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: PartialOrd + 'a> PartialOrd<SliceStream<'a, T>> for SliceStream<'a, T>[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

impl<'a, T> Sync for SliceStream<'a, T> where
    T: Sync

Blanket Implementations

impl<I> Stream for I where
    I: StreamOnce + Positioned + ResetStream,
    <I as StreamOnce>::Error: ParseError<<I as StreamOnce>::Item, <I as StreamOnce>::Range, <I as StreamOnce>::Position>, 
[src]

impl<I> RangeStream for I where
    I: RangeStreamOnce + Stream
[src]

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

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

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

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