pub trait TupleIndex {
    // Required method
    fn get_field<'a, T>(self, tuple: &'a Tuple) -> Result<Option<T>>
       where T: Decode<'a>;
}
Expand description

TupleIndex Types implementing this trait can be used as arguments for the Tuple::get method.

This is a helper trait, so you don’t want to use it directly.

Required Methods§

source

fn get_field<'a, T>(self, tuple: &'a Tuple) -> Result<Option<T>>
where T: Decode<'a>,

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl TupleIndex for &str

source§

fn get_field<'a, T>(self, tuple: &'a Tuple) -> Result<Option<T>>
where T: Decode<'a>,

source§

impl TupleIndex for u32

source§

fn get_field<'a, T>(self, tuple: &'a Tuple) -> Result<Option<T>>
where T: Decode<'a>,

Implementors§