tinymist/crates/tinymist-std/src/concepts/read.rs
Myriad-Dreamin 8ca6c8118c
feat: merge fs and std crate (#1203)
* feat: merge fs and std crate

* fix: errors
2025-01-20 23:00:31 +08:00

5 lines
212 B
Rust

/// A trait for reading all data from a source into a buffer.
pub trait ReadAllOnce {
/// Reads all data from the source into the buffer.
fn read_all(self, buf: &mut Vec<u8>) -> std::io::Result<usize>;
}