[−][src]Struct nom::FileProducer
Methods
impl FileProducer[src]
pub fn new(filename: &str, buffer_size: usize) -> Result<FileProducer>[src]
pub fn state(&self) -> FileProducerState[src]
pub fn refill(&mut self) -> Option<usize>[src]
pub fn resize(&mut self, s: usize) -> usize[src]
Resize the internal buffer, copy the data to the new one and returned how much data was copied
If the new buffer is smaller, the prefix will be copied, and the rest of the data will be dropped
Trait Implementations
impl Debug for FileProducer[src]
impl<'x> Producer<'x, &'x [u8], Move> for FileProducer[src]
Auto Trait Implementations
impl RefUnwindSafe for FileProducer
impl Send for FileProducer
impl Sync for FileProducer
impl Unpin for FileProducer
impl UnwindSafe for FileProducer
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,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
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.
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>,