odbc_api::buffers

Enum AnySliceMut

Source
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 AnySliceMut::Binary. It allows you to 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 AnySliceMut::Text. It allows you to 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 AnySliceMut::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 AnySliceMut.

Source

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

Extract the typed nullable buffer from an AnySliceMut.

Auto Trait Implementations§

§

impl<'a> Freeze for AnySliceMut<'a>

§

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 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> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more