[][src]Struct nom::MemProducer

pub struct MemProducer<'x> { /* fields omitted */ }

A MemProducer generates values from an in memory byte buffer

it generates data by chunks, and keeps track of how much was consumed. It can receive messages of type Move to handle consumption and seeking

Methods

impl<'x> MemProducer<'x>[src]

pub fn new(buffer: &'x [u8], chunk_size: usize) -> MemProducer[src]

Trait Implementations

impl<'x, 'b> Producer<'b, &'x [u8], Move> for MemProducer<'x>[src]

Auto Trait Implementations

impl<'x> RefUnwindSafe for MemProducer<'x>

impl<'x> Send for MemProducer<'x>

impl<'x> Sync for MemProducer<'x>

impl<'x> Unpin for MemProducer<'x>

impl<'x> UnwindSafe for MemProducer<'x>

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