Skip to main content

SelectOperand

Trait SelectOperand 

Source
pub trait SelectOperand<C>: AsView { }
Expand description

The branches of where_select for a condition representation C: any AsView input, available only when C is a SelectCondition, so a typed non-bool receiver does not offer where_select.

§Examples

use tenferro_runtime::SelectOperand;
use tenferro_tensor::{Tensor, Typed};

fn branch<Y: SelectOperand<Typed<bool>> + ?Sized>(_: &Y) {}
branch(&Tensor::from_vec_col_major(vec![1], vec![1.0_f64])?);

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§