mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-03-23 10:38:57 +00:00
10 lines
231 B
Rust
10 lines
231 B
Rust
use std::io;
|
|
|
|
pub trait Encode {
|
|
// TODO: Remove
|
|
fn size_hint(&self) -> usize { 0 }
|
|
|
|
// FIXME: Use BytesMut and not Vec<u8> (also remove the error type here)
|
|
fn encode(&self, buf: &mut Vec<u8>) -> io::Result<()>;
|
|
}
|