mz_compute::render::errors

Trait 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>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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§