Struct xfind::StreamFinder[][src]

pub struct StreamFinder<'n> { /* fields omitted */ }
Expand description

A substring searcher for stream searches.

Implementations

Creates a new StreamFinder for the given needle.

Returns the needle that this finder searches for.

Returns the index of the first occurrence of the given needle in the stream.

Returns the index of the last occurrence of the given needle in the stream.

Panics

Panics if the length of the stream is greater than usize::MAX.

Returns an iterator over all occurrences of the given needle in the stream.

Returns a reverse iterator over all occurrences of the given needle in the stream.

Errors

Returns an I/O error if seeking to the end of the stream failed.

Panics

Panics if the length of the stream is greater than usize::MAX.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.