pub trait Value:
Debug
+ Send
+ Sync {
// Required methods
fn get_write_length(&self) -> i32;
fn marshal(&self, bytebuffer: &mut ByteBuffer);
fn marshal_in_table(&self, bytebuffer: &mut ByteBuffer, _column_type: i8);
fn to_value_string(&self) -> String;
fn from_bytes(bs: Vec<u8>, _column: &Column) -> Result<Self, VoltError>
where Self: Sized;
}Required Methods§
fn get_write_length(&self) -> i32
fn marshal(&self, bytebuffer: &mut ByteBuffer)
fn marshal_in_table(&self, bytebuffer: &mut ByteBuffer, _column_type: i8)
fn to_value_string(&self) -> String
fn from_bytes(bs: Vec<u8>, _column: &Column) -> Result<Self, VoltError>where
Self: Sized,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".