Module borrowed

Module borrowed 

Source
Expand description

Borrows a slice of bytes of the input document.

Choose this implementation if:

  1. You already have the data loaded in-memory and can borrow it while using the engine.

§Performance characteristics

This type of input is the fastest to process for the engine, since there is no additional overhead from loading anything to memory. It is on par with OwnedBytes, but doesn’t take ownership of the bytes.

Structs§

BorrowedBytes
Input wrapping a borrowed [[u8]] buffer.
BorrowedBytesBlockIterator
Iterator over blocks of BorrowedBytes of size exactly N.