Module rsonpath::input::owned

source ·
Expand description

Takes ownership of bytes of the input document.

Choose this implementation if:

  1. You already have the data loaded in-memory.
  2. 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

  • Input wrapping a buffer borrowable as a slice of bytes.