pub trait OptionTy {
    const EXISTS: bool;
}
Expand description

Helper trait to mimic Option<T>, but where the variant are types

Required Associated Constants§

source

const EXISTS: bool

Whether this is a NoneTy (when false) or a SomeTy<T> (when true)

Implementors§

source§

impl OptionTy for NoneTy

source§

const EXISTS: bool = false

source§

impl<T> OptionTy for SomeTy<T>

source§

const EXISTS: bool = true