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

pub struct SliceStream<'a, T>(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> Clone for SliceStream<'a, T>[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]

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

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

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

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

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

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

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

type Checkpoint = Self

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

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

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

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

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

impl<'a, T> Unpin for SliceStream<'a, T>

impl<'a, T> UnwindSafe for SliceStream<'a, T> where
    T: RefUnwindSafe

Blanket Implementations

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

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

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

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.