Trait tidb_query_datatype::codec::data_type::AsMySQLBool[][src]

pub trait AsMySQLBool {
    fn as_mysql_bool(&self, context: &mut EvalContext) -> Result<bool>;
}

A trait of evaluating current concrete eval type into a MySQL logic value, represented by Rust’s bool type.

Required methods

fn as_mysql_bool(&self, context: &mut EvalContext) -> Result<bool>[src]

Evaluates into a MySQL logic value.

Loading content...

Implementations on Foreign Types

impl<'a, T: AsMySQLBool> AsMySQLBool for &'a T[src]

impl<'a, T> AsMySQLBool for Option<&'a T> where
    T: AsMySQLBool
[src]

impl<'a> AsMySQLBool for Option<BytesRef<'a>>[src]

impl<'a> AsMySQLBool for Option<JsonRef<'a>>[src]

impl<'a> AsMySQLBool for Option<EnumRef<'a>>[src]

impl<'a> AsMySQLBool for Option<SetRef<'a>>[src]

Loading content...

Implementors

impl AsMySQLBool for ScalarValue[src]

impl AsMySQLBool for Decimal[src]

impl AsMySQLBool for Duration[src]

impl AsMySQLBool for Enum[src]

impl AsMySQLBool for Json[src]

impl AsMySQLBool for Set[src]

impl AsMySQLBool for Time[src]

impl AsMySQLBool for Bytes[src]

impl AsMySQLBool for Int[src]

impl AsMySQLBool for Real[src]

impl<'a> AsMySQLBool for EnumRef<'a>[src]

impl<'a> AsMySQLBool for JsonRef<'a>[src]

impl<'a> AsMySQLBool for SetRef<'a>[src]

impl<'a> AsMySQLBool for BytesRef<'a>[src]

Loading content...