#[repr(C)]
pub struct Type_handler_hybrid_field_type { pub m_type_handler: *const Type_handler, }
Expand description

A handler for hybrid type functions, e.g. COALESCE(), IF(), IFNULL(), NULLIF(), CASE, numeric operators, UNIX_TIMESTAMP(), TIME_TO_SEC().

Makes sure that field_type(), cmp_type() and result_type() are always in sync to each other for hybrid functions.

Fields§

§m_type_handler: *const Type_handler

Implementations§

source§

impl Type_handler_hybrid_field_type

source

pub unsafe fn aggregate_for_comparison( &mut self, other: *const Type_handler ) -> bool

source

pub unsafe fn aggregate_for_comparison1( &mut self, funcname: *const LEX_CSTRING, items: *mut *mut Item, nitems: uint, treat_int_to_uint_as_decimal: bool ) -> bool

source

pub unsafe fn aggregate_for_result( &mut self, other: *const Type_handler ) -> bool

source

pub unsafe fn aggregate_for_result1( &mut self, funcname: *const LEX_CSTRING, item: *mut *mut Item, nitems: uint, treat_bit_as_number: bool ) -> bool

source

pub unsafe fn aggregate_for_min_max( &mut self, funcname: *const LEX_CSTRING, item: *mut *mut Item, nitems: uint ) -> bool

source

pub unsafe fn aggregate_for_num_op( &mut self, aggregator: *const Type_aggregator, h0: *const Type_handler, h1: *const Type_handler ) -> bool

source

pub unsafe fn new() -> Self

Trait Implementations§

source§

impl Debug for Type_handler_hybrid_field_type

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.