Skip to main content

DataTypeExt

Trait DataTypeExt 

Source
pub trait DataTypeExt {
    // Required methods
    fn name(self) -> &'static str;
    fn accepts_character_data(self) -> bool;
    fn accepts_binary_data(self) -> bool;
    fn accepts_numeric_data(self) -> bool;
}
Expand description

Helper predicates for odbc-api data type groups.

Required Methods§

Source

fn name(self) -> &'static str

Returns the canonical display name for this type.

Source

fn accepts_character_data(self) -> bool

Returns whether this type carries character data.

Source

fn accepts_binary_data(self) -> bool

Returns whether this type carries binary data.

Source

fn accepts_numeric_data(self) -> bool

Returns whether this type carries numeric data.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl DataTypeExt for DataType

Implementors§