Expand description
Borrows a slice of bytes of the input document.
Choose this implementation if:
- 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§
- Borrowed
Bytes - Input wrapping a borrowed [
[u8]
] buffer. - Borrowed
Bytes Block Iterator - Iterator over blocks of
BorrowedBytes
of size exactlyN
.