Trait mz_compute::render::errors::MaybeValidatingRow

source ·
pub(super) trait MaybeValidatingRow<T, E>:
    ExchangeData
    + Columnation
    + Hash {
    // Required methods
    fn ok(t: T) -> Self;
    fn into_error() -> Option<fn(_: E) -> Self>;
}
Expand description

Used to make possibly-validating code generic: think of this as a kind of MaybeResult, specialized for use in compute. Validation code will only run when the error constructor is Some.

Required Methods§

source

fn ok(t: T) -> Self

source

fn into_error() -> Option<fn(_: E) -> Self>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<E> MaybeValidatingRow<(), E> for ()

source§

fn ok(t: ()) -> Self

source§

fn into_error() -> Option<fn(_: E) -> Self>

source§

impl<E> MaybeValidatingRow<Row, E> for Row

source§

fn ok(t: Row) -> Self

source§

fn into_error() -> Option<fn(_: E) -> Self>

source§

impl<E, R> MaybeValidatingRow<Vec<R>, E> for Vec<R>

source§

fn ok(t: Vec<R>) -> Self

source§

fn into_error() -> Option<fn(_: E) -> Self>

source§

impl<T, E> MaybeValidatingRow<T, E> for Result<T, E>

source§

fn ok(row: T) -> Self

source§

fn into_error() -> Option<fn(_: E) -> Self>

Implementors§