Enum ExtFnValue

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

Variants§

§

Null(SqlDataType)

§

Inline(RawExtFnValue)

§

Multipart

Fields

§idx: u32
§raw_value: RawExtFnValue
§total_len: u32
§offset: u32

Implementations§

Source§

impl ExtFnValue

Source

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

Return a value cursor for $type

Source

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

Return a potentially nullable value cursor for $type

Source§

impl ExtFnValue

Source

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

Return a value cursor for $type

Source

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

Return a potentially nullable value cursor for $type

Source§

impl ExtFnValue

Source

pub fn is_null(&self) -> bool

Source

pub fn kind(&self) -> SqlDataTypeKind

Source

pub fn data_type(&self) -> SqlDataType

Source

pub fn len(&self) -> usize

Source§

impl ExtFnValue

Source

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

Source

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

Source§

impl ExtFnValue

Source

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

Source

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

Source§

impl ExtFnValue

Source

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

Source

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

Source§

impl ExtFnValue

Source

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

Source

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

Source§

impl ExtFnValue

Source

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

Source

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

Source§

impl ExtFnValue

Source

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

Source

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

Source§

impl ExtFnValue

Source

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

Source

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

Trait Implementations§

Source§

impl Debug for ExtFnValue

Source§

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

Formats the value using the given formatter. Read more
Source§

impl TryFrom<ExtFnValue> for Option<i16>

Source§

type Error = Error

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

fn try_from(value: ExtFnValue) -> Result<Option<i16>, Self::Error>

Performs the conversion.
Source§

impl TryFrom<ExtFnValue> for Option<i32>

Source§

type Error = Error

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

fn try_from(value: ExtFnValue) -> Result<Option<i32>, Self::Error>

Performs the conversion.
Source§

impl TryFrom<ExtFnValue> for Option<i64>

Source§

type Error = Error

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

fn try_from(value: ExtFnValue) -> Result<Option<i64>, Self::Error>

Performs the conversion.
Source§

impl TryFrom<ExtFnValue> for Option<u16>

Source§

type Error = Error

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

fn try_from(value: ExtFnValue) -> Result<Option<u16>, Self::Error>

Performs the conversion.
Source§

impl TryFrom<ExtFnValue> for Option<u32>

Source§

type Error = Error

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

fn try_from(value: ExtFnValue) -> Result<Option<u32>, Self::Error>

Performs the conversion.
Source§

impl TryFrom<ExtFnValue> for Option<u64>

Source§

type Error = Error

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

fn try_from(value: ExtFnValue) -> Result<Option<u64>, Self::Error>

Performs the conversion.
Source§

impl TryFrom<ExtFnValue> for Option<u8>

Source§

type Error = Error

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

fn try_from(value: ExtFnValue) -> Result<Option<u8>, Self::Error>

Performs the conversion.
Source§

impl TryFrom<ExtFnValue> for i16

Source§

type Error = Error

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

fn try_from(value: ExtFnValue) -> Result<i16, Self::Error>

Performs the conversion.
Source§

impl TryFrom<ExtFnValue> for i32

Source§

type Error = Error

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

fn try_from(value: ExtFnValue) -> Result<i32, Self::Error>

Performs the conversion.
Source§

impl TryFrom<ExtFnValue> for i64

Source§

type Error = Error

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

fn try_from(value: ExtFnValue) -> Result<i64, Self::Error>

Performs the conversion.
Source§

impl TryFrom<ExtFnValue> for u16

Source§

type Error = Error

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

fn try_from(value: ExtFnValue) -> Result<u16, Self::Error>

Performs the conversion.
Source§

impl TryFrom<ExtFnValue> for u32

Source§

type Error = Error

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

fn try_from(value: ExtFnValue) -> Result<u32, Self::Error>

Performs the conversion.
Source§

impl TryFrom<ExtFnValue> for u64

Source§

type Error = Error

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

fn try_from(value: ExtFnValue) -> Result<u64, Self::Error>

Performs the conversion.
Source§

impl TryFrom<ExtFnValue> for u8

Source§

type Error = Error

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

fn try_from(value: ExtFnValue) -> Result<u8, Self::Error>

Performs the conversion.

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>,

Source§

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>,

Source§

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.