Crate io_interner[][src]

A simple crate implementing a struct wrapping a reader and writer that's used to create readers to unique data.

Structs

IOEntry

A struct generated by IOInterner::get_or_intern.

IOInterner

A struct wrapping a Mutex<T> used for storing and retrieving data thought readers.

IOObj

A struct generated by IOEntry::get_object.

IOPos

Struct stating which data IOObj will read from the IOInterner internal IO object.

Functions

cmp

Compares the contents of x to the ones of y,see lexicographical comparison.

eq

Checks if the contents of the reader x are the ones of y.

hash

Hash the contents of the reader x to state.

io_op

Pass to callback slices with lenght up to 512 contained in both readers until either one reach EOF and returns None or when callback returns Some,that case this function will return it.

io_unary_op

Like io_op,but with only one reader and slice passed down to callback.

starts_with

Checks if the first contents of the reader haystack are the ones of needle,an empty needle is always true.