pub trait Encoder {
// Required method
fn encode_field_with_type_and_format<T>(
&mut self,
value: &T,
data_type: &Type,
format: FieldFormat,
) -> PgWireResult<()>
where T: ToSql + ToSqlText + Sized;
}Required Methods§
fn encode_field_with_type_and_format<T>( &mut self, value: &T, data_type: &Type, format: FieldFormat, ) -> PgWireResult<()>
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.