pub unsafe trait OdbcType<'a>: Sized {
// Required methods
fn sql_data_type() -> SqlDataType;
fn c_data_type() -> SqlCDataType;
fn convert(_: &'a [u8]) -> Self;
fn column_size(&self) -> u64;
fn value_ptr(&self) -> *mut c_void;
// Provided methods
fn null_bytes_count() -> usize { ... }
fn decimal_digits(&self) -> i16 { ... }
}Required Methods§
fn sql_data_type() -> SqlDataType
fn c_data_type() -> SqlCDataType
fn convert(_: &'a [u8]) -> Self
fn column_size(&self) -> u64
fn value_ptr(&self) -> *mut c_void
Provided Methods§
fn null_bytes_count() -> usize
fn decimal_digits(&self) -> i16
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.