Struct hcklib::core::Core

source ·
pub struct Core<'a, L> { /* private fields */ }
Expand description

The main processing loop

Implementations§

Create a new “core” the can be used to parse multiple inputs

Iterate over the lines in a slice of bytes.

The input slice of bytes is assumed to end in a newline.

Fast mode iteration over lines in a slice of bytes.

This expects the seperator to be a single byte and the newline to be a singel byte.

Instead of seaching for linebreaks, then splitting up the line on the sep, fast mode looks for either sep or newline at the same time, so instead of two passes over the bytes we only make one pass.

Fast mode iteration over lines in a reader.

This expects the separator to be a single byte and the newline to be a single byte.

Instead of seaching for linebreaks, then splitting up the line on the sep, fast mode looks for either sep or newline at the same time, so instead of two passes over the bytes we only make one pass.

Process lines from a reader.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.