Trait qrlew::types::Or

source ·
pub trait Or<T> {
    type Sum;

    // Required method
    fn or(self, other: T) -> Self::Sum;
}
Expand description

An abstract sum of types

Required Associated Types§

Required Methods§

source

fn or(self, other: T) -> Self::Sum

Implementors§

source§

impl Or<DataType> for DataType

source§

impl Or<DataType> for Optional

source§

impl Or<DataType> for Union

§

type Sum = Union

source§

impl Or<DataType> for Unit

source§

impl Or<Optional> for Optional

source§

impl Or<Optional> for Union

source§

impl Or<Union> for Union

§

type Sum = Union

source§

impl Or<Unit> for Union

source§

impl<S: Into<String>, T: Into<Arc<DataType>>> Or<(S, T)> for DataType

source§

impl<S: Into<String>, T: Into<Arc<DataType>>> Or<(S, T)> for Union

This is the core operation to build a Union

§

type Sum = Union

source§

impl<T: Into<Arc<DataType>>> Or<(T,)> for Union

§

type Sum = Union