pub trait MaskedValue: TensorValue {
    // Required methods
    fn to_option(self) -> Option<Self::Unmasked>;
    fn from_option(value: Option<Self::Unmasked>) -> Self;
}
Expand description

Trait that allows casting between TensorValue::Masked and Option<TensorValue>

Required Methods§

source

fn to_option(self) -> Option<Self::Unmasked>

source

fn from_option(value: Option<Self::Unmasked>) -> Self

Implementations on Foreign Types§

source§

impl<T> MaskedValue for Option<T>where T: TensorValue<Masked = Option<T>, Unmasked = T>,

Implementors§