Skip to main content

Splat

Struct Splat 

Source
pub struct Splat<T> { /* private fields */ }
Expand description

Splat argument.

This is a marker trait that is used as a wrapper around tuples of arguments allowing to invoke a function with multiple arguments as if it were a single argument. Its purpose is to make writing operators with multiple arguments more ergonomic, which is particularly useful for joins.

All function traits implement variations of Splat for tuples of up to 8 elements, which is likely to be sufficient for most use cases. Please note that most of the time, this type is only ever needed for creating flexible operator functions, so you’ll rarely want to use it directly. Additionally, note that Splat itself doesn’t impose any trait bounds in order to not require even more trait bounds in the signature of implementors. Moreover, it doesn’t implement Value, meaning it can only be used temporarily inside operators, but never returned.

§Examples

use zrx_stream::function::Splat;

// Create splat from tuple
let splat = Splat::from((1, 2));

Implementations§

Source§

impl<T> Splat<T>

Source

pub fn inner(&self) -> &T

Returns the inner tuple of arguments.

§Examples
use zrx_stream::function::Splat;

// Create splat from tuple
let splat = Splat::from((1, 2));
assert_eq!(splat.inner(), &(1, 2));
Source

pub fn into_inner(self) -> T

Returns the inner tuple of arguments, consuming the splat.

§Examples
use zrx_stream::function::Splat;

// Create splat from tuple
let splat = Splat::from((1, 2));
assert_eq!(splat.into_inner(), (1, 2));
Source§

impl<T> Splat<T>

Source

pub fn from_ref(inner: &T) -> &Self

Creates a splat argument from a reference to a tuple.

This method converts &T to &Splat<T>, which allows us to use splat arguments in any function that takes a reference to a value T without cloning the value. While the conversion mandates the use of unsafe, it’s safe due to identical memory layout guarantees.

§Examples
use zrx_stream::function::Splat;

// Create splat from tuple reference
let splat = Splat::from_ref(&(1, 2));

Trait Implementations§

Source§

impl<T: Clone> Clone for Splat<T>

Source§

fn clone(&self) -> Splat<T>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T: Debug> Debug for Splat<T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<F, R, I, T1> FilterFn<I, Splat<(T1,)>> for F
where F: Fn(&T1) -> R + Send + 'static, R: IntoReport<bool>, I: Display,

Source§

fn execute(&self, id: &I, data: &Splat<(T1,)>) -> Result<bool>

Executes the filter function. Read more
Source§

impl<F, R, I, T1, T2> FilterFn<I, Splat<(T1, T2)>> for F
where F: Fn(&T1, &T2) -> R + Send + 'static, R: IntoReport<bool>, I: Display,

Source§

fn execute(&self, id: &I, data: &Splat<(T1, T2)>) -> Result<bool>

Executes the filter function. Read more
Source§

impl<F, R, I, T1, T2, T3> FilterFn<I, Splat<(T1, T2, T3)>> for F
where F: Fn(&T1, &T2, &T3) -> R + Send + 'static, R: IntoReport<bool>, I: Display,

Source§

fn execute(&self, id: &I, data: &Splat<(T1, T2, T3)>) -> Result<bool>

Executes the filter function. Read more
Source§

impl<F, R, I, T1, T2, T3, T4> FilterFn<I, Splat<(T1, T2, T3, T4)>> for F
where F: Fn(&T1, &T2, &T3, &T4) -> R + Send + 'static, R: IntoReport<bool>, I: Display,

Source§

fn execute(&self, id: &I, data: &Splat<(T1, T2, T3, T4)>) -> Result<bool>

Executes the filter function. Read more
Source§

impl<F, R, I, T1, T2, T3, T4, T5> FilterFn<I, Splat<(T1, T2, T3, T4, T5)>> for F
where F: Fn(&T1, &T2, &T3, &T4, &T5) -> R + Send + 'static, R: IntoReport<bool>, I: Display,

Source§

fn execute(&self, id: &I, data: &Splat<(T1, T2, T3, T4, T5)>) -> Result<bool>

Executes the filter function. Read more
Source§

impl<F, R, I, T1, T2, T3, T4, T5, T6> FilterFn<I, Splat<(T1, T2, T3, T4, T5, T6)>> for F
where F: Fn(&T1, &T2, &T3, &T4, &T5, &T6) -> R + Send + 'static, R: IntoReport<bool>, I: Display,

Source§

fn execute( &self, id: &I, data: &Splat<(T1, T2, T3, T4, T5, T6)>, ) -> Result<bool>

Executes the filter function. Read more
Source§

impl<F, R, I, T1, T2, T3, T4, T5, T6, T7> FilterFn<I, Splat<(T1, T2, T3, T4, T5, T6, T7)>> for F
where F: Fn(&T1, &T2, &T3, &T4, &T5, &T6, &T7) -> R + Send + 'static, R: IntoReport<bool>, I: Display,

Source§

fn execute( &self, id: &I, data: &Splat<(T1, T2, T3, T4, T5, T6, T7)>, ) -> Result<bool>

Executes the filter function. Read more
Source§

impl<F, R, I, T1, T2, T3, T4, T5, T6, T7, T8> FilterFn<I, Splat<(T1, T2, T3, T4, T5, T6, T7, T8)>> for F
where F: Fn(&T1, &T2, &T3, &T4, &T5, &T6, &T7, &T8) -> R + Send + 'static, R: IntoReport<bool>, I: Display,

Source§

fn execute( &self, id: &I, data: &Splat<(T1, T2, T3, T4, T5, T6, T7, T8)>, ) -> Result<bool>

Executes the filter function. Read more
Source§

impl<F, R, I, T1, U> FilterMapFn<I, Splat<(T1,)>, U> for F
where F: Fn(T1) -> R + Send + 'static, R: IntoReport<Option<U>>, I: Display,

Source§

fn execute(&self, id: &I, data: Splat<(T1,)>) -> Result<Option<U>>

Executes the filter map function. Read more
Source§

impl<F, R, I, T1, T2, U> FilterMapFn<I, Splat<(T1, T2)>, U> for F
where F: Fn(T1, T2) -> R + Send + 'static, R: IntoReport<Option<U>>, I: Display,

Source§

fn execute(&self, id: &I, data: Splat<(T1, T2)>) -> Result<Option<U>>

Executes the filter map function. Read more
Source§

impl<F, R, I, T1, T2, T3, U> FilterMapFn<I, Splat<(T1, T2, T3)>, U> for F
where F: Fn(T1, T2, T3) -> R + Send + 'static, R: IntoReport<Option<U>>, I: Display,

Source§

fn execute(&self, id: &I, data: Splat<(T1, T2, T3)>) -> Result<Option<U>>

Executes the filter map function. Read more
Source§

impl<F, R, I, T1, T2, T3, T4, U> FilterMapFn<I, Splat<(T1, T2, T3, T4)>, U> for F
where F: Fn(T1, T2, T3, T4) -> R + Send + 'static, R: IntoReport<Option<U>>, I: Display,

Source§

fn execute(&self, id: &I, data: Splat<(T1, T2, T3, T4)>) -> Result<Option<U>>

Executes the filter map function. Read more
Source§

impl<F, R, I, T1, T2, T3, T4, T5, U> FilterMapFn<I, Splat<(T1, T2, T3, T4, T5)>, U> for F
where F: Fn(T1, T2, T3, T4, T5) -> R + Send + 'static, R: IntoReport<Option<U>>, I: Display,

Source§

fn execute( &self, id: &I, data: Splat<(T1, T2, T3, T4, T5)>, ) -> Result<Option<U>>

Executes the filter map function. Read more
Source§

impl<F, R, I, T1, T2, T3, T4, T5, T6, U> FilterMapFn<I, Splat<(T1, T2, T3, T4, T5, T6)>, U> for F
where F: Fn(T1, T2, T3, T4, T5, T6) -> R + Send + 'static, R: IntoReport<Option<U>>, I: Display,

Source§

fn execute( &self, id: &I, data: Splat<(T1, T2, T3, T4, T5, T6)>, ) -> Result<Option<U>>

Executes the filter map function. Read more
Source§

impl<F, R, I, T1, T2, T3, T4, T5, T6, T7, U> FilterMapFn<I, Splat<(T1, T2, T3, T4, T5, T6, T7)>, U> for F
where F: Fn(T1, T2, T3, T4, T5, T6, T7) -> R + Send + 'static, R: IntoReport<Option<U>>, I: Display,

Source§

fn execute( &self, id: &I, data: Splat<(T1, T2, T3, T4, T5, T6, T7)>, ) -> Result<Option<U>>

Executes the filter map function. Read more
Source§

impl<F, R, I, T1, T2, T3, T4, T5, T6, T7, T8, U> FilterMapFn<I, Splat<(T1, T2, T3, T4, T5, T6, T7, T8)>, U> for F
where F: Fn(T1, T2, T3, T4, T5, T6, T7, T8) -> R + Send + 'static, R: IntoReport<Option<U>>, I: Display,

Source§

fn execute( &self, id: &I, data: Splat<(T1, T2, T3, T4, T5, T6, T7, T8)>, ) -> Result<Option<U>>

Executes the filter map function. Read more
Source§

impl<T> From<T> for Splat<T>

Source§

fn from(inner: T) -> Self

Creates a splat from a tuple of arguments.

§Examples
use zrx_stream::function::Splat;

// Create splat from tuple
let splat = Splat::from((1, 2));
Source§

impl<F, R, I, T1> InspectFn<I, Splat<(T1,)>> for F
where F: Fn(&T1) -> R + Send + 'static, R: IntoReport, I: Display,

Source§

fn execute(&self, id: &I, data: &Splat<(T1,)>) -> Result

Executes the inspect function. Read more
Source§

impl<F, R, I, T1, T2> InspectFn<I, Splat<(T1, T2)>> for F
where F: Fn(&T1, &T2) -> R + Send + 'static, R: IntoReport, I: Display,

Source§

fn execute(&self, id: &I, data: &Splat<(T1, T2)>) -> Result

Executes the inspect function. Read more
Source§

impl<F, R, I, T1, T2, T3> InspectFn<I, Splat<(T1, T2, T3)>> for F
where F: Fn(&T1, &T2, &T3) -> R + Send + 'static, R: IntoReport, I: Display,

Source§

fn execute(&self, id: &I, data: &Splat<(T1, T2, T3)>) -> Result

Executes the inspect function. Read more
Source§

impl<F, R, I, T1, T2, T3, T4> InspectFn<I, Splat<(T1, T2, T3, T4)>> for F
where F: Fn(&T1, &T2, &T3, &T4) -> R + Send + 'static, R: IntoReport, I: Display,

Source§

fn execute(&self, id: &I, data: &Splat<(T1, T2, T3, T4)>) -> Result

Executes the inspect function. Read more
Source§

impl<F, R, I, T1, T2, T3, T4, T5> InspectFn<I, Splat<(T1, T2, T3, T4, T5)>> for F
where F: Fn(&T1, &T2, &T3, &T4, &T5) -> R + Send + 'static, R: IntoReport, I: Display,

Source§

fn execute(&self, id: &I, data: &Splat<(T1, T2, T3, T4, T5)>) -> Result

Executes the inspect function. Read more
Source§

impl<F, R, I, T1, T2, T3, T4, T5, T6> InspectFn<I, Splat<(T1, T2, T3, T4, T5, T6)>> for F
where F: Fn(&T1, &T2, &T3, &T4, &T5, &T6) -> R + Send + 'static, R: IntoReport, I: Display,

Source§

fn execute(&self, id: &I, data: &Splat<(T1, T2, T3, T4, T5, T6)>) -> Result

Executes the inspect function. Read more
Source§

impl<F, R, I, T1, T2, T3, T4, T5, T6, T7> InspectFn<I, Splat<(T1, T2, T3, T4, T5, T6, T7)>> for F
where F: Fn(&T1, &T2, &T3, &T4, &T5, &T6, &T7) -> R + Send + 'static, R: IntoReport, I: Display,

Source§

fn execute(&self, id: &I, data: &Splat<(T1, T2, T3, T4, T5, T6, T7)>) -> Result

Executes the inspect function. Read more
Source§

impl<F, R, I, T1, T2, T3, T4, T5, T6, T7, T8> InspectFn<I, Splat<(T1, T2, T3, T4, T5, T6, T7, T8)>> for F
where F: Fn(&T1, &T2, &T3, &T4, &T5, &T6, &T7, &T8) -> R + Send + 'static, R: IntoReport, I: Display,

Source§

fn execute( &self, id: &I, data: &Splat<(T1, T2, T3, T4, T5, T6, T7, T8)>, ) -> Result

Executes the inspect function. Read more
Source§

impl<F, R, I, T1, U> LiftFn<I, Splat<(T1,)>, U> for F
where F: Fn(&T1) -> R + Send + 'static, R: IntoReport<Chunk<I, U>>, I: Display,

Source§

fn execute(&self, id: &I, data: &Splat<(T1,)>) -> Result<Chunk<I, U>>

Executes the lift function. Read more
Source§

impl<F, R, I, T1, T2, U> LiftFn<I, Splat<(T1, T2)>, U> for F
where F: Fn(&T1, &T2) -> R + Send + 'static, R: IntoReport<Chunk<I, U>>, I: Display,

Source§

fn execute(&self, id: &I, data: &Splat<(T1, T2)>) -> Result<Chunk<I, U>>

Executes the lift function. Read more
Source§

impl<F, R, I, T1, T2, T3, U> LiftFn<I, Splat<(T1, T2, T3)>, U> for F
where F: Fn(&T1, &T2, &T3) -> R + Send + 'static, R: IntoReport<Chunk<I, U>>, I: Display,

Source§

fn execute(&self, id: &I, data: &Splat<(T1, T2, T3)>) -> Result<Chunk<I, U>>

Executes the lift function. Read more
Source§

impl<F, R, I, T1, T2, T3, T4, U> LiftFn<I, Splat<(T1, T2, T3, T4)>, U> for F
where F: Fn(&T1, &T2, &T3, &T4) -> R + Send + 'static, R: IntoReport<Chunk<I, U>>, I: Display,

Source§

fn execute(&self, id: &I, data: &Splat<(T1, T2, T3, T4)>) -> Result<Chunk<I, U>>

Executes the lift function. Read more
Source§

impl<F, R, I, T1, T2, T3, T4, T5, U> LiftFn<I, Splat<(T1, T2, T3, T4, T5)>, U> for F
where F: Fn(&T1, &T2, &T3, &T4, &T5) -> R + Send + 'static, R: IntoReport<Chunk<I, U>>, I: Display,

Source§

fn execute( &self, id: &I, data: &Splat<(T1, T2, T3, T4, T5)>, ) -> Result<Chunk<I, U>>

Executes the lift function. Read more
Source§

impl<F, R, I, T1, T2, T3, T4, T5, T6, U> LiftFn<I, Splat<(T1, T2, T3, T4, T5, T6)>, U> for F
where F: Fn(&T1, &T2, &T3, &T4, &T5, &T6) -> R + Send + 'static, R: IntoReport<Chunk<I, U>>, I: Display,

Source§

fn execute( &self, id: &I, data: &Splat<(T1, T2, T3, T4, T5, T6)>, ) -> Result<Chunk<I, U>>

Executes the lift function. Read more
Source§

impl<F, R, I, T1, T2, T3, T4, T5, T6, T7, U> LiftFn<I, Splat<(T1, T2, T3, T4, T5, T6, T7)>, U> for F
where F: Fn(&T1, &T2, &T3, &T4, &T5, &T6, &T7) -> R + Send + 'static, R: IntoReport<Chunk<I, U>>, I: Display,

Source§

fn execute( &self, id: &I, data: &Splat<(T1, T2, T3, T4, T5, T6, T7)>, ) -> Result<Chunk<I, U>>

Executes the lift function. Read more
Source§

impl<F, R, I, T1, T2, T3, T4, T5, T6, T7, T8, U> LiftFn<I, Splat<(T1, T2, T3, T4, T5, T6, T7, T8)>, U> for F
where F: Fn(&T1, &T2, &T3, &T4, &T5, &T6, &T7, &T8) -> R + Send + 'static, R: IntoReport<Chunk<I, U>>, I: Display,

Source§

fn execute( &self, id: &I, data: &Splat<(T1, T2, T3, T4, T5, T6, T7, T8)>, ) -> Result<Chunk<I, U>>

Executes the lift function. Read more
Source§

impl<F, R, I, T1, U> MapFn<I, Splat<(T1,)>, U> for F
where F: Fn(T1) -> R + Send + 'static, R: IntoReport<U>, I: Display,

Source§

fn execute(&self, id: &I, data: Splat<(T1,)>) -> Result<U>

Executes the map function. Read more
Source§

impl<F, R, I, T1, T2, U> MapFn<I, Splat<(T1, T2)>, U> for F
where F: Fn(T1, T2) -> R + Send + 'static, R: IntoReport<U>, I: Display,

Source§

fn execute(&self, id: &I, data: Splat<(T1, T2)>) -> Result<U>

Executes the map function. Read more
Source§

impl<F, R, I, T1, T2, T3, U> MapFn<I, Splat<(T1, T2, T3)>, U> for F
where F: Fn(T1, T2, T3) -> R + Send + 'static, R: IntoReport<U>, I: Display,

Source§

fn execute(&self, id: &I, data: Splat<(T1, T2, T3)>) -> Result<U>

Executes the map function. Read more
Source§

impl<F, R, I, T1, T2, T3, T4, U> MapFn<I, Splat<(T1, T2, T3, T4)>, U> for F
where F: Fn(T1, T2, T3, T4) -> R + Send + 'static, R: IntoReport<U>, I: Display,

Source§

fn execute(&self, id: &I, data: Splat<(T1, T2, T3, T4)>) -> Result<U>

Executes the map function. Read more
Source§

impl<F, R, I, T1, T2, T3, T4, T5, U> MapFn<I, Splat<(T1, T2, T3, T4, T5)>, U> for F
where F: Fn(T1, T2, T3, T4, T5) -> R + Send + 'static, R: IntoReport<U>, I: Display,

Source§

fn execute(&self, id: &I, data: Splat<(T1, T2, T3, T4, T5)>) -> Result<U>

Executes the map function. Read more
Source§

impl<F, R, I, T1, T2, T3, T4, T5, T6, U> MapFn<I, Splat<(T1, T2, T3, T4, T5, T6)>, U> for F
where F: Fn(T1, T2, T3, T4, T5, T6) -> R + Send + 'static, R: IntoReport<U>, I: Display,

Source§

fn execute(&self, id: &I, data: Splat<(T1, T2, T3, T4, T5, T6)>) -> Result<U>

Executes the map function. Read more
Source§

impl<F, R, I, T1, T2, T3, T4, T5, T6, T7, U> MapFn<I, Splat<(T1, T2, T3, T4, T5, T6, T7)>, U> for F
where F: Fn(T1, T2, T3, T4, T5, T6, T7) -> R + Send + 'static, R: IntoReport<U>, I: Display,

Source§

fn execute( &self, id: &I, data: Splat<(T1, T2, T3, T4, T5, T6, T7)>, ) -> Result<U>

Executes the map function. Read more
Source§

impl<F, R, I, T1, T2, T3, T4, T5, T6, T7, T8, U> MapFn<I, Splat<(T1, T2, T3, T4, T5, T6, T7, T8)>, U> for F
where F: Fn(T1, T2, T3, T4, T5, T6, T7, T8) -> R + Send + 'static, R: IntoReport<U>, I: Display,

Source§

fn execute( &self, id: &I, data: Splat<(T1, T2, T3, T4, T5, T6, T7, T8)>, ) -> Result<U>

Executes the map function. Read more
Source§

impl<T: Ord> Ord for Splat<T>

Source§

fn cmp(&self, other: &Splat<T>) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl<T: PartialEq> PartialEq for Splat<T>

Source§

fn eq(&self, other: &Splat<T>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<T: PartialOrd> PartialOrd for Splat<T>

Source§

fn partial_cmp(&self, other: &Splat<T>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<F, R, I, T1, S> SelectFn<I, Splat<(T1,)>, S> for F
where F: Fn(&T1) -> R + Send + 'static, R: IntoReport<S>, I: Display,

Source§

fn execute(&self, id: &I, data: &Splat<(T1,)>) -> Result<S>

Executes the select function. Read more
Source§

impl<F, R, I, T1, T2, S> SelectFn<I, Splat<(T1, T2)>, S> for F
where F: Fn(&T1, &T2) -> R + Send + 'static, R: IntoReport<S>, I: Display,

Source§

fn execute(&self, id: &I, data: &Splat<(T1, T2)>) -> Result<S>

Executes the select function. Read more
Source§

impl<F, R, I, T1, T2, T3, S> SelectFn<I, Splat<(T1, T2, T3)>, S> for F
where F: Fn(&T1, &T2, &T3) -> R + Send + 'static, R: IntoReport<S>, I: Display,

Source§

fn execute(&self, id: &I, data: &Splat<(T1, T2, T3)>) -> Result<S>

Executes the select function. Read more
Source§

impl<F, R, I, T1, T2, T3, T4, S> SelectFn<I, Splat<(T1, T2, T3, T4)>, S> for F
where F: Fn(&T1, &T2, &T3, &T4) -> R + Send + 'static, R: IntoReport<S>, I: Display,

Source§

fn execute(&self, id: &I, data: &Splat<(T1, T2, T3, T4)>) -> Result<S>

Executes the select function. Read more
Source§

impl<F, R, I, T1, T2, T3, T4, T5, S> SelectFn<I, Splat<(T1, T2, T3, T4, T5)>, S> for F
where F: Fn(&T1, &T2, &T3, &T4, &T5) -> R + Send + 'static, R: IntoReport<S>, I: Display,

Source§

fn execute(&self, id: &I, data: &Splat<(T1, T2, T3, T4, T5)>) -> Result<S>

Executes the select function. Read more
Source§

impl<F, R, I, T1, T2, T3, T4, T5, T6, S> SelectFn<I, Splat<(T1, T2, T3, T4, T5, T6)>, S> for F
where F: Fn(&T1, &T2, &T3, &T4, &T5, &T6) -> R + Send + 'static, R: IntoReport<S>, I: Display,

Source§

fn execute(&self, id: &I, data: &Splat<(T1, T2, T3, T4, T5, T6)>) -> Result<S>

Executes the select function. Read more
Source§

impl<F, R, I, T1, T2, T3, T4, T5, T6, T7, S> SelectFn<I, Splat<(T1, T2, T3, T4, T5, T6, T7)>, S> for F
where F: Fn(&T1, &T2, &T3, &T4, &T5, &T6, &T7) -> R + Send + 'static, R: IntoReport<S>, I: Display,

Source§

fn execute( &self, id: &I, data: &Splat<(T1, T2, T3, T4, T5, T6, T7)>, ) -> Result<S>

Executes the select function. Read more
Source§

impl<F, R, I, T1, T2, T3, T4, T5, T6, T7, T8, S> SelectFn<I, Splat<(T1, T2, T3, T4, T5, T6, T7, T8)>, S> for F
where F: Fn(&T1, &T2, &T3, &T4, &T5, &T6, &T7, &T8) -> R + Send + 'static, R: IntoReport<S>, I: Display,

Source§

fn execute( &self, id: &I, data: &Splat<(T1, T2, T3, T4, T5, T6, T7, T8)>, ) -> Result<S>

Executes the select function. Read more
Source§

impl<T: Eq> Eq for Splat<T>

Source§

impl<T> StructuralPartialEq for Splat<T>

Auto Trait Implementations§

§

impl<T> Freeze for Splat<T>
where T: Freeze,

§

impl<T> RefUnwindSafe for Splat<T>
where T: RefUnwindSafe,

§

impl<T> Send for Splat<T>
where T: Send,

§

impl<T> Sync for Splat<T>
where T: Sync,

§

impl<T> Unpin for Splat<T>
where T: Unpin,

§

impl<T> UnsafeUnpin for Splat<T>
where T: UnsafeUnpin,

§

impl<T> UnwindSafe for Splat<T>
where T: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<!> for T

Source§

fn from(t: !) -> T

Converts to this type from the input type.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, E> IntoReport<T, E> for T
where E: Error,

Source§

fn into_report(self) -> Result<Report<T>, E>

Creates a report from a value T and wraps it in a result.

§Examples
use std::io::Error;
use zrx_diagnostic::report::IntoReport;

// Define function returning a value
fn f() -> impl IntoReport<i32, Error> {
    42
}

// Invoke function and create report
let res = f().into_report();
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Value for T
where T: Debug + 'static,