pub enum AnySliceMut<'a> {
Show 25 variants Text(TextColumnSliceMut<'a, u8>), WText(TextColumnSliceMut<'a, u16>), Binary(BinColumnSliceMut<'a>), Date(&'a mut [Date]), Time(&'a mut [Time]), Timestamp(&'a mut [Timestamp]), F64(&'a mut [f64]), F32(&'a mut [f32]), I8(&'a mut [i8]), I16(&'a mut [i16]), I32(&'a mut [i32]), I64(&'a mut [i64]), U8(&'a mut [u8]), Bit(&'a mut [Bit]), NullableDate(NullableSliceMut<'a, Date>), NullableTime(NullableSliceMut<'a, Time>), NullableTimestamp(NullableSliceMut<'a, Timestamp>), NullableF64(NullableSliceMut<'a, f64>), NullableF32(NullableSliceMut<'a, f32>), NullableI8(NullableSliceMut<'a, i8>), NullableI16(NullableSliceMut<'a, i16>), NullableI32(NullableSliceMut<'a, i32>), NullableI64(NullableSliceMut<'a, i64>), NullableU8(NullableSliceMut<'a, u8>), NullableBit(NullableSliceMut<'a, Bit>),
}
Expand description

A mutable slice of an input buffer, with runtime type information. Edit values in this slice in order to send parameters in bulk to a database.

Variants§

§

Text(TextColumnSliceMut<'a, u8>)

§

WText(TextColumnSliceMut<'a, u16>)

Nullable character data encoded in UTF-16.

§

Binary(BinColumnSliceMut<'a>)

§

Date(&'a mut [Date])

§

Time(&'a mut [Time])

§

Timestamp(&'a mut [Timestamp])

§

F64(&'a mut [f64])

§

F32(&'a mut [f32])

§

I8(&'a mut [i8])

§

I16(&'a mut [i16])

§

I32(&'a mut [i32])

§

I64(&'a mut [i64])

§

U8(&'a mut [u8])

§

Bit(&'a mut [Bit])

§

NullableDate(NullableSliceMut<'a, Date>)

§

NullableTime(NullableSliceMut<'a, Time>)

§

NullableTimestamp(NullableSliceMut<'a, Timestamp>)

§

NullableF64(NullableSliceMut<'a, f64>)

§

NullableF32(NullableSliceMut<'a, f32>)

§

NullableI8(NullableSliceMut<'a, i8>)

§

NullableI16(NullableSliceMut<'a, i16>)

§

NullableI32(NullableSliceMut<'a, i32>)

§

NullableI64(NullableSliceMut<'a, i64>)

§

NullableU8(NullableSliceMut<'a, u8>)

§

NullableBit(NullableSliceMut<'a, Bit>)

Implementations§

source§

impl<'a> AnySliceMut<'a>

source

pub fn as_bin_view(self) -> Option<BinColumnSliceMut<'a>>

This method is useful if you expect the variant to be [AnyColumnSliceMut::Binary]. It allows to you unwrap the inner column view without explictly matching it.

source

pub fn as_text_view(self) -> Option<TextColumnSliceMut<'a, u8>>

This method is useful if you expect the variant to be [AnyColumnSliceMut::Text]. It allows to you unwrap the inner column view without explictly matching it.

source

pub fn as_w_text_view(self) -> Option<TextColumnSliceMut<'a, u16>>

This method is useful if you expect the variant to be [AnyColumnSliceMut::WText]. It allows you to unwrap the inner column view without explictly matching it.

source

pub fn as_slice<I: Item>(self) -> Option<&'a mut [I]>

Extract the array type from an [AnyColumnSliceMut].

source

pub fn as_nullable_slice<I: Item>(self) -> Option<NullableSliceMut<'a, I>>

Extract the typed nullable buffer from an [AnyColumnSliceMut].

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for AnySliceMut<'a>

§

impl<'a> !Send for AnySliceMut<'a>

§

impl<'a> !Sync for AnySliceMut<'a>

§

impl<'a> Unpin for AnySliceMut<'a>

§

impl<'a> !UnwindSafe for AnySliceMut<'a>

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · 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 Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.