Skip to main content

SelectCondition

Trait SelectCondition 

Source
pub trait SelectCondition: Repr { }
Expand description

A representation that can be the condition of where_select: the erased representation (checked at run time) or Typed<bool>.

§Examples

use tenferro_runtime::SelectCondition;
use tenferro_tensor::{Erased, Typed};

fn is_condition<C: SelectCondition>() {}
is_condition::<Erased>();
is_condition::<Typed<bool>>();

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl SelectCondition for Erased

Source§

impl SelectCondition for Typed<bool>

Implementors§