mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-11-26 22:04:56 +00:00
5 lines
212 B
Rust
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>;
|
|
}
|