Trait mz_repr::fixed_length::ToDatumIter

source ·
pub trait ToDatumIter: Sized {
    type DatumIter<'a>: IntoIterator<Item = Datum<'a>>
       where Self: 'a;

    // Required method
    fn to_datum_iter<'a>(&'a self) -> Self::DatumIter<'a>;
}
Expand description

A helper trait to get references to `Row.

Required Associated Types§

source

type DatumIter<'a>: IntoIterator<Item = Datum<'a>> where Self: 'a

An iterator type for use in to_datum_iter.

Required Methods§

source

fn to_datum_iter<'a>(&'a self) -> Self::DatumIter<'a>

Obtains an iterator of datums out of an instance of Self, given a schema provided by types.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ToDatumIter for ()

§

type DatumIter<'a> = Empty<Datum<'a>>

Empty iterator for unit.

source§

fn to_datum_iter<'a>(&'a self) -> Self::DatumIter<'a>

Returns an empty iterator.

source§

impl<'b, T: ToDatumIter> ToDatumIter for &'b T

§

type DatumIter<'a> = <T as ToDatumIter>::DatumIter<'a> where T: 'a, Self: 'a

source§

fn to_datum_iter<'a>(&'a self) -> Self::DatumIter<'a>

Implementors§

source§

impl ToDatumIter for Row

§

type DatumIter<'a> = DatumListIter<'a>