mirror of
https://github.com/quickwit-oss/tantivy.git
synced 2026-01-06 09:12:55 +00:00
12 lines
247 B
Rust
12 lines
247 B
Rust
use crate::directory::FileHandle;
|
|
use std::io;
|
|
use std::ops::Range;
|
|
|
|
pub use ownedbytes::OwnedBytes;
|
|
|
|
impl FileHandle for OwnedBytes {
|
|
fn read_bytes(&self, range: Range<usize>) -> io::Result<OwnedBytes> {
|
|
Ok(self.slice(range))
|
|
}
|
|
}
|