Skip to main content

Row

Struct Row 

Source
pub struct Row { /* private fields */ }
Expand description

Represents a data row with type-safe value access

Implementations§

Source§

impl Row

Source

pub fn new() -> Self

Create a new empty row

Source

pub fn with_capacity(capacity: usize) -> Self

Create a new row with pre-allocated capacity

Source

pub fn len(&self) -> usize

Get the number of values in the row

Source

pub fn is_empty(&self) -> bool

Check if the row is empty

Source

pub fn from_values(values: Vec<Value>) -> Self

Create a row directly from values (more efficient than chaining add_value calls)

Source

pub fn add_value(self, value: Value) -> Self

Add a value to the row

Source

pub fn add_values(self, values: Vec<Value>) -> Self

Add multiple values to the row

Source

pub fn add_values_iter(self, values: impl IntoIterator<Item = Value>) -> Self

Add multiple values from an iterator

Source

pub fn get_bool(&self, index: usize) -> Option<bool>

Get boolean value at index (safe version with bounds checking)

Source

pub unsafe fn get_bool_unchecked(&self, index: usize) -> Option<bool>

Get boolean value at index (unsafe version without bounds checking)

§Safety

The caller must ensure that index < self.values.len()

Source

pub fn get_i8(&self, index: usize) -> Option<i8>

Get i8 value at index (safe version with bounds checking)

Source

pub unsafe fn get_i8_unchecked(&self, index: usize) -> Option<i8>

Get i8 value at index (unsafe version without bounds checking)

§Safety

The caller must ensure that index < self.values.len()

Source

pub fn get_i16(&self, index: usize) -> Option<i16>

Get i16 value at index (safe version with bounds checking)

Source

pub unsafe fn get_i16_unchecked(&self, index: usize) -> Option<i16>

Get i16 value at index (unsafe version without bounds checking)

§Safety

The caller must ensure that index < self.values.len()

Source

pub fn get_i32(&self, index: usize) -> Option<i32>

Get i32 value at index (safe version with bounds checking)

Source

pub unsafe fn get_i32_unchecked(&self, index: usize) -> Option<i32>

Get i32 value at index (unsafe version without bounds checking)

§Safety

The caller must ensure that index < self.values.len()

Source

pub fn get_i64(&self, index: usize) -> Option<i64>

Get i64 value at index (safe version with bounds checking)

Source

pub unsafe fn get_i64_unchecked(&self, index: usize) -> Option<i64>

Get i64 value at index (unsafe version without bounds checking)

§Safety

The caller must ensure that index < self.values.len()

Source

pub fn get_u8(&self, index: usize) -> Option<u8>

Get u8 value at index (safe version with bounds checking)

Source

pub unsafe fn get_u8_unchecked(&self, index: usize) -> Option<u8>

Get u8 value at index (unsafe version without bounds checking)

§Safety

The caller must ensure that index < self.values.len()

Source

pub fn get_u16(&self, index: usize) -> Option<u16>

Get u16 value at index (safe version with bounds checking)

Source

pub unsafe fn get_u16_unchecked(&self, index: usize) -> Option<u16>

Get u16 value at index (unsafe version without bounds checking)

§Safety

The caller must ensure that index < self.values.len()

Source

pub fn get_u32(&self, index: usize) -> Option<u32>

Get u32 value at index (safe version with bounds checking)

Source

pub unsafe fn get_u32_unchecked(&self, index: usize) -> Option<u32>

Get u32 value at index (unsafe version without bounds checking)

§Safety

The caller must ensure that index < self.values.len()

Source

pub fn get_u64(&self, index: usize) -> Option<u64>

Get u64 value at index (safe version with bounds checking)

Source

pub unsafe fn get_u64_unchecked(&self, index: usize) -> Option<u64>

Get u64 value at index (unsafe version without bounds checking)

§Safety

The caller must ensure that index < self.values.len()

Source

pub fn get_f32(&self, index: usize) -> Option<f32>

Get f32 value at index (safe version with bounds checking)

Source

pub unsafe fn get_f32_unchecked(&self, index: usize) -> Option<f32>

Get f32 value at index (unsafe version without bounds checking)

§Safety

The caller must ensure that index < self.values.len()

Source

pub fn get_f64(&self, index: usize) -> Option<f64>

Get f64 value at index (safe version with bounds checking)

Source

pub unsafe fn get_f64_unchecked(&self, index: usize) -> Option<f64>

Get f64 value at index (unsafe version without bounds checking)

§Safety

The caller must ensure that index < self.values.len()

Source

pub fn get_binary(&self, index: usize) -> Option<Vec<u8>>

Get binary value at index (safe version with bounds checking)

Source

pub unsafe fn get_binary_unchecked(&self, index: usize) -> Option<Vec<u8>>

Get binary value at index (unsafe version without bounds checking)

§Safety

The caller must ensure that index < self.values.len()

Source

pub fn take_binary(&mut self, index: usize) -> Option<Vec<u8>>

Take binary value at index (safe version with bounds checking)

Source

pub unsafe fn take_binary_unchecked(&mut self, index: usize) -> Option<Vec<u8>>

Take binary value at index (unsafe version without bounds checking)

§Safety

The caller must ensure that index < self.values.len()

Source

pub fn get_string(&self, index: usize) -> Option<String>

Get string value at index (safe version with bounds checking)

Source

pub unsafe fn get_string_unchecked(&self, index: usize) -> Option<String>

Get string value at index (unsafe version without bounds checking)

§Safety

The caller must ensure that index < self.values.len()

Source

pub fn take_string(&mut self, index: usize) -> Option<String>

Take string value at index (safe version with bounds checking)

Source

pub unsafe fn take_string_unchecked(&mut self, index: usize) -> Option<String>

Take string value at index (unsafe version without bounds checking)

§Safety

The caller must ensure that index < self.values.len()

Source

pub fn get_date(&self, index: usize) -> Option<i32>

Get date value at index (safe version with bounds checking)

Source

pub unsafe fn get_date_unchecked(&self, index: usize) -> Option<i32>

Get date value at index (unsafe version without bounds checking)

§Safety

The caller must ensure that index < self.values.len()

Source

pub fn get_datetime(&self, index: usize) -> Option<i64>

Get datetime value at index (safe version with bounds checking)

Source

pub unsafe fn get_datetime_unchecked(&self, index: usize) -> Option<i64>

Get datetime value at index (unsafe version without bounds checking)

§Safety

The caller must ensure that index < self.values.len()

Source

pub fn get_timestamp(&self, index: usize) -> Option<i64>

Get timestamp value at index (generic, supports all timestamp types, safe version with bounds checking)

Source

pub unsafe fn get_timestamp_unchecked(&self, index: usize) -> Option<i64>

Get timestamp value at index (generic, supports all timestamp types, unsafe version without bounds checking)

§Safety

The caller must ensure that index < self.values.len()

Source

pub fn get_time32(&self, index: usize) -> Option<i32>

Get time32 value at index (safe version with bounds checking)

Source

pub unsafe fn get_time32_unchecked(&self, index: usize) -> Option<i32>

Get time32 value at index (unsafe version without bounds checking)

§Safety

The caller must ensure that index < self.values.len()

Source

pub fn get_time64(&self, index: usize) -> Option<i64>

Get time64 value at index (safe version with bounds checking)

Source

pub unsafe fn get_time64_unchecked(&self, index: usize) -> Option<i64>

Get time64 value at index (unsafe version without bounds checking)

§Safety

The caller must ensure that index < self.values.len()

Source

pub fn get_decimal128(&self, index: usize) -> Option<i128>

Get decimal128 value at index (safe version with bounds checking)

Source

pub unsafe fn get_decimal128_unchecked(&self, index: usize) -> Option<i128>

Get decimal128 value at index (unsafe version without bounds checking)

§Safety

The caller must ensure that index < self.values.len()

Trait Implementations§

Source§

impl Clone for Row

Source§

fn clone(&self) -> Row

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Row

Source§

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

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

impl Default for Row

Source§

fn default() -> Row

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl Freeze for Row

§

impl RefUnwindSafe for Row

§

impl Send for Row

§

impl Sync for Row

§

impl Unpin for Row

§

impl UnsafeUnpin for Row

§

impl UnwindSafe for Row

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromRef<T> for T
where T: Clone,

Source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
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> IntoRequest<T> for T

Source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
Source§

impl<L> LayerExt<L> for L

Source§

fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>
where L: Layer<S>,

Applies the layer to a service and wraps it in Layered.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

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
Source§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,