pub trait FixedSize:
Sized
+ Clone
+ Send
+ Sync
+ 'static {
// Required methods
fn read_from(buffer: &mut &[u8]) -> Result<Self>;
fn write_to(&self, buffer: &mut BytesMut);
}Expand description
Trait for types that can be read/written as fixed-size values (synchronous version for columns)
All numeric types are stored in little-endian format in ClickHouse wire protocol.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.