pub unsafe trait CDataType {
// Required methods
fn c_data_type() -> SqlCDataType;
fn sql_ptr(&self) -> *const c_void;
fn mut_sql_ptr(&mut self) -> SQLPOINTER;
fn buffer_len(&self) -> SQLLEN;
}Expand description
See [C Data Types in ODBC][1] [1]: https://docs.microsoft.com/sql/odbc/reference/develop-app/c-data-types-in-odbc
Required Methods§
Sourcefn c_data_type() -> SqlCDataType
fn c_data_type() -> SqlCDataType
C Data type of the buffer returned by mut_sql_ptr().
Sourcefn mut_sql_ptr(&mut self) -> SQLPOINTER
fn mut_sql_ptr(&mut self) -> SQLPOINTER
Pointer to the buffer in which should be filled with data.
Sourcefn buffer_len(&self) -> SQLLEN
fn buffer_len(&self) -> SQLLEN
Length of the buffer returned by mut_sql_ptr() in bytes.
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.