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>
impl<'a> AnySliceMut<'a>
Sourcepub fn as_bin_view(self) -> Option<BinColumnSliceMut<'a>>
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.
Sourcepub fn as_text_view(self) -> Option<TextColumnSliceMut<'a, u8>>
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.
Sourcepub fn as_w_text_view(self) -> Option<TextColumnSliceMut<'a, u16>>
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.
Sourcepub fn as_slice<I: Item>(self) -> Option<&'a mut [I]>
pub fn as_slice<I: Item>(self) -> Option<&'a mut [I]>
Extract the array type from an AnySliceMut
.
Sourcepub fn as_nullable_slice<I: Item>(self) -> Option<NullableSliceMut<'a, I>>
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more