#[repr(C)]
pub struct Type_handler { pub vtable_: *const Type_handler__bindgen_vtable, pub m_name: Name, }

Fields§

§vtable_: *const Type_handler__bindgen_vtable§m_name: Name

Implementations§

source§

impl Type_handler

source

pub unsafe fn print_item_value_csstr( &self, thd: *mut THD, item: *mut Item, str_: *mut String ) -> *mut String

source

pub unsafe fn print_item_value_temporal( &self, thd: *mut THD, item: *mut Item, str_: *mut String, type_name: *const Name, buf: *mut String ) -> *mut String

source

pub unsafe fn make_sort_key_longlong( &self, to: *mut uchar, maybe_null: bool, null_value: bool, unsigned_flag: bool, value: longlong )

source

pub unsafe fn store_sort_key_longlong( &self, to: *mut uchar, unsigned_flag: bool, value: longlong )

source

pub unsafe fn make_packed_sort_key_longlong( &self, to: *mut uchar, maybe_null: bool, null_value: bool, unsigned_flag: bool, value: longlong, sort_field: *const SORT_FIELD_ATTR ) -> uint

source

pub unsafe fn Item_func_or_sum_illegal_param( &self, name: *const LEX_CSTRING ) -> bool

source

pub unsafe fn Item_func_or_sum_illegal_param1( &self, arg1: *const Item_func_or_sum ) -> bool

source

pub unsafe fn check_null(&self, item: *const Item, value: *mut st_value) -> bool

source

pub unsafe fn Item_send_str( &self, item: *mut Item, protocol: *mut Protocol, buf: *mut st_value ) -> bool

source

pub unsafe fn Item_send_tiny( &self, item: *mut Item, protocol: *mut Protocol, buf: *mut st_value ) -> bool

source

pub unsafe fn Item_send_short( &self, item: *mut Item, protocol: *mut Protocol, buf: *mut st_value ) -> bool

source

pub unsafe fn Item_send_long( &self, item: *mut Item, protocol: *mut Protocol, buf: *mut st_value ) -> bool

source

pub unsafe fn Item_send_longlong( &self, item: *mut Item, protocol: *mut Protocol, buf: *mut st_value ) -> bool

source

pub unsafe fn Item_send_float( &self, item: *mut Item, protocol: *mut Protocol, buf: *mut st_value ) -> bool

source

pub unsafe fn Item_send_double( &self, item: *mut Item, protocol: *mut Protocol, buf: *mut st_value ) -> bool

source

pub unsafe fn Item_send_time( &self, item: *mut Item, protocol: *mut Protocol, buf: *mut st_value ) -> bool

source

pub unsafe fn Item_send_date( &self, item: *mut Item, protocol: *mut Protocol, buf: *mut st_value ) -> bool

source

pub unsafe fn Item_send_timestamp( &self, item: *mut Item, protocol: *mut Protocol, buf: *mut st_value ) -> bool

source

pub unsafe fn Item_send_datetime( &self, item: *mut Item, protocol: *mut Protocol, buf: *mut st_value ) -> bool

source

pub unsafe fn Column_definition_prepare_stage2_legacy( &self, c: *mut Column_definition, type_: Type ) -> bool

source

pub unsafe fn Column_definition_prepare_stage2_legacy_num( &self, c: *mut Column_definition, type_: Type ) -> bool

source

pub unsafe fn Column_definition_prepare_stage2_legacy_real( &self, c: *mut Column_definition, type_: Type ) -> bool

source

pub unsafe fn handler_by_name( thd: *mut THD, name: *const LEX_CSTRING ) -> *const Type_handler

source

pub unsafe fn handler_by_name_or_error( thd: *mut THD, name: *const LEX_CSTRING ) -> *const Type_handler

source

pub unsafe fn handler_by_log_event_data_type( thd: *mut THD, type_: *const Log_event_data_type ) -> *const Type_handler

source

pub unsafe fn odbc_literal_type_handler( str_: *const LEX_CSTRING ) -> *const Type_handler

source

pub unsafe fn blob_type_handler(max_octet_length: uint) -> *const Type_handler

source

pub unsafe fn string_type_handler(max_octet_length: uint) -> *const Type_handler

source

pub unsafe fn bit_and_int_mixture_handler( max_char_len: uint ) -> *const Type_handler

source

pub unsafe fn type_handler_long_or_longlong( max_char_len: uint, unsigned_flag: bool ) -> *const Type_handler

source

pub unsafe fn varstring_type_handler(item: *const Item) -> *const Type_handler

source

pub unsafe fn blob_type_handler1(item: *const Item) -> *const Type_handler

source

pub unsafe fn get_handler_by_field_type(type_: Type) -> *const Type_handler

source

pub unsafe fn get_handler_by_real_type(type_: Type) -> *const Type_handler

source

pub unsafe fn type_collection_for_aggregation( h1: *const Type_handler, h2: *const Type_handler ) -> *const Type_collection

source

pub unsafe fn aggregate_for_result_traditional( h1: *const Type_handler, h2: *const Type_handler ) -> *const Type_handler

source

pub unsafe fn partition_field_type_not_allowed(field_name: *const LEX_CSTRING)

source

pub unsafe fn partition_field_check_result_type( item: *mut Item, expected_type: Type ) -> bool

source

pub unsafe fn version_mysql56() -> *const Name

source

pub unsafe fn version_mariadb53() -> *const Name

source

pub unsafe fn is_traditional_scalar_type(&self) -> bool

source

pub unsafe fn make_and_init_table_field( &self, root: *mut MEM_ROOT, name: *const LEX_CSTRING, addr: *const Record_addr, attr: *const Type_all_attributes, table: *mut TABLE ) -> *mut Field

source

pub unsafe fn Item_get_date_with_warn( &self, thd: *mut THD, item: *mut Item, ltime: *mut MYSQL_TIME, fuzzydate: date_mode_t ) -> bool

source

pub unsafe fn Item_func_hybrid_field_type_get_date_with_warn( &self, thd: *mut THD, arg1: *mut Item_func_hybrid_field_type, arg2: *mut MYSQL_TIME, arg3: date_mode_t ) -> bool

Trait Implementations§

source§

impl Debug for Type_handler

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.