Skip to main content

IndexableValues

Trait IndexableValues 

Source
pub trait IndexableValues {
    type Text: Clone;
    type Binary: Clone;

    // Required method
    fn get(&self, col_idx: usize) -> Option<Value<Self::Text, Self::Binary>>;
}
Expand description

Collection of indexable values.

Required Associated Types§

Source

type Text: Clone

The string variant.

Source

type Binary: Clone

The binary variant.

Required Methods§

Source

fn get(&self, col_idx: usize) -> Option<Value<Self::Text, Self::Binary>>

Get the value at the specified column index.

§Arguments
  • col_idx - The index of the column to retrieve.
§Returns

The value at the specified column index, or None if the index is out of bounds.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<O, S: Clone, B: Clone> IndexableValues for &[(O, Option<Value<S, B>>)]

Source§

type Text = S

Source§

type Binary = B

Source§

fn get(&self, col_idx: usize) -> Option<Value<Self::Text, Self::Binary>>

Source§

impl<O, S: Clone, B: Clone> IndexableValues for Vec<(O, Option<Value<S, B>>)>

Source§

type Text = S

Source§

type Binary = B

Source§

fn get(&self, col_idx: usize) -> Option<Value<Self::Text, Self::Binary>>

Source§

impl<S: Clone, B: Clone> IndexableValues for &[Option<Value<S, B>>]

Source§

type Text = S

Source§

type Binary = B

Source§

fn get(&self, col_idx: usize) -> Option<Value<Self::Text, Self::Binary>>

Source§

impl<S: Clone, B: Clone> IndexableValues for &[Value<S, B>]

Source§

type Text = S

Source§

type Binary = B

Source§

fn get(&self, col_idx: usize) -> Option<Value<Self::Text, Self::Binary>>

Source§

impl<S: Clone, B: Clone> IndexableValues for Vec<Option<Value<S, B>>>

Source§

type Text = S

Source§

type Binary = B

Source§

fn get(&self, col_idx: usize) -> Option<Value<Self::Text, Self::Binary>>

Source§

impl<S: Clone, B: Clone> IndexableValues for Vec<Value<S, B>>

Source§

type Text = S

Source§

type Binary = B

Source§

fn get(&self, col_idx: usize) -> Option<Value<Self::Text, Self::Binary>>

Implementors§