[][src]Enum sqlany_extfnapi::ExtFnValue

pub enum ExtFnValue {
    Null(SqlDataType),
    Inline(RawExtFnValue),
    Multipart {
        idx: u32,
        raw_value: RawExtFnValue,
        total_len: u32,
        offset: u32,
        api: ExtFnApi,
    },
}

Variants

Multipart

Fields of Multipart

idx: u32raw_value: RawExtFnValuetotal_len: u32offset: u32api: ExtFnApi

Implementations

impl ExtFnValue[src]

pub fn to_byte_cursor<'a>(self) -> impl ExtFnValueCursor<Item = [u8]>[src]

Return a value cursor for $type

pub fn to_opt_byte_cursor<'a>(
    self
) -> Option<impl ExtFnValueCursor<Item = [u8]>>
[src]

Return a potentially nullable value cursor for $type

impl ExtFnValue[src]

pub fn to_str_cursor<'a>(self) -> impl ExtFnValueCursor<Item = str>[src]

Return a value cursor for $type

pub fn to_opt_str_cursor<'a>(self) -> Option<impl ExtFnValueCursor<Item = str>>[src]

Return a potentially nullable value cursor for $type

impl ExtFnValue[src]

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

pub fn kind(&self) -> SqlDataTypeKind[src]

pub fn data_type(&self) -> SqlDataType[src]

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

impl ExtFnValue[src]

pub fn to_u8(self) -> Result<u8, Error>[src]

pub fn to_opt_u8(self) -> Result<Option<u8>, Error>[src]

impl ExtFnValue[src]

pub fn to_u16(self) -> Result<u16, Error>[src]

pub fn to_opt_u16(self) -> Result<Option<u16>, Error>[src]

impl ExtFnValue[src]

pub fn to_i16(self) -> Result<i16, Error>[src]

pub fn to_opt_i16(self) -> Result<Option<i16>, Error>[src]

impl ExtFnValue[src]

pub fn to_u32(self) -> Result<u32, Error>[src]

pub fn to_opt_u32(self) -> Result<Option<u32>, Error>[src]

impl ExtFnValue[src]

pub fn to_i32(self) -> Result<i32, Error>[src]

pub fn to_opt_i32(self) -> Result<Option<i32>, Error>[src]

impl ExtFnValue[src]

pub fn to_u64(self) -> Result<u64, Error>[src]

pub fn to_opt_u64(self) -> Result<Option<u64>, Error>[src]

impl ExtFnValue[src]

pub fn to_i64(self) -> Result<i64, Error>[src]

pub fn to_opt_i64(self) -> Result<Option<i64>, Error>[src]

Trait Implementations

impl Debug for ExtFnValue[src]

impl TryFrom<ExtFnValue> for u8[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<ExtFnValue> for Option<u8>[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<ExtFnValue> for u64[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<ExtFnValue> for Option<u64>[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<ExtFnValue> for i64[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<ExtFnValue> for Option<i64>[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<ExtFnValue> for u16[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<ExtFnValue> for Option<u16>[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<ExtFnValue> for i16[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<ExtFnValue> for Option<i16>[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<ExtFnValue> for u32[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<ExtFnValue> for Option<u32>[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<ExtFnValue> for i32[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<ExtFnValue> for Option<i32>[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

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<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.