Struct tidb_query_datatype::codec::mysql::enums::EnumRef[][src]

pub struct EnumRef<'a> {
    name: &'a [u8],
    value: &'a u64,
}

Fields

name: &'a [u8]value: &'a u64

Implementations

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

pub fn new(name: &'a [u8], value: &'a u64) -> Self[src]

pub fn to_owned(self) -> Enum[src]

pub fn is_empty(&self) -> bool[src]

pub fn value(&self) -> u64[src]

pub fn value_ref(&self) -> &'a u64[src]

pub fn name(&self) -> &'a [u8][src]

pub fn as_str(&self) -> Result<&str>[src]

pub fn len(&self) -> usize[src]

Trait Implementations

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

impl<'a> ChunkRef<'a, EnumRef<'a>> for &'a ChunkedVecEnum[src]

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

impl<'a> ConvertTo<Vec<u8, Global>> for EnumRef<'a>[src]

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

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

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

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

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

type EvaluableType = Enum

type ChunkedType = &'a ChunkedVecEnum

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

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

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

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

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

impl<'a> UnsafeRefInto<EnumRef<'static>> for EnumRef<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for EnumRef<'a>

impl<'a> Send for EnumRef<'a>

impl<'a> Sync for EnumRef<'a>

impl<'a> Unpin for EnumRef<'a>

impl<'a> UnwindSafe for EnumRef<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<V, W> ConvertFrom<W> for V where
    W: ConvertTo<V>, 
[src]

impl<T> ConvertTo<i64> for T where
    T: ToInt
[src]

impl<T> ConvertTo<u64> for T where
    T: ToInt
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> Sealed<T> for T where
    T: ?Sized
[src]

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]