Expand description
Takes ownership of bytes of the input document.
Choose this implementation if:
- You already have the data loaded in-memory.
- You don’t want to deal with ownership and would rather have the input take ownership of the bytes.
§Performance characteristics
This is as fast as BorrowedBytes, unless
the Borrow implementation of the underlying byte structure is weird
and costly.
Structs§
- Owned
Bytes - Input wrapping a buffer borrowable as a slice of bytes.