Struct read_byte_slice::ByteSliceIter [] [src]

pub struct ByteSliceIter<R> where
    R: Read
{ /* fields omitted */ }

An iterator over byte slices from a Read that reuses the same buffer instead of allocating.

See the crate documentation for example usage.

Methods

impl<R> ByteSliceIter<R> where
    R: Read
[src]

[src]

Create a new ByteSliceIter that reads from inner and produces slices of length chunk_len. If size does not divide the total number of bytes read evenly the last chunk will not have length size.

Trait Implementations

impl<'a, R> FallibleStreamingIterator for ByteSliceIter<R> where
    R: Read
[src]

The type being iterated over.

The error type of iteration.

[src]

Advances the iterator to the next position. Read more

[src]

Returns the current element. Read more

[src]

Advances the iterator, returning the next element. Read more

[src]

Returns bounds on the number of remaining elements in the iterator.

[src]

Determines if all elements of the iterator satisfy a predicate.

[src]

Determines if any elements of the iterator satisfy a predicate.

[src]

Borrows an iterator, rather than consuming it. Read more

[src]

Returns the number of remaining elements in the iterator.

[src]

Returns an iterator which filters elements by a predicate.

[src]

Returns the first element of the iterator which satisfies a predicate.

[src]

Returns an iterator which is well-behaved at the beginning and end of iteration.

[src]

Returns an iterator which applies a transform to elements.

[src]

Returns an iterator which applies a transform to elements. Read more

[src]

Returns an iterator that applies a transform to errors.

[src]

Returns the nth element of the iterator.

[src]

Returns the position of the first element matching a predicate.

[src]

Returns an iterator which skips the first n elements.

[src]

Returns an iterator which skips the first sequence of elements matching a predicate.

[src]

Returns an iterator which only returns the first n elements.

[src]

Returns an iterator which only returns the first sequence of elements matching a predicate.