Skip to main content

RowLike

Trait RowLike 

Source
pub trait RowLike {
    type Value: Clone;

    // Required method
    fn values(&self) -> &[Self::Value];

    // Provided method
    fn arity(&self) -> usize { ... }
}
Expand description

Minimal row interface required by generic JOIN row-combination helpers.

Required Associated Types§

Source

type Value: Clone

Cell value type stored by the row.

Required Methods§

Source

fn values(&self) -> &[Self::Value]

Return the row values in column order.

Provided Methods§

Source

fn arity(&self) -> usize

Return the number of columns in the row.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§