Skip to main content

OptionTy

Trait OptionTy 

Source
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)

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl OptionTy for NoneTy

Source§

const EXISTS: bool = false

Source§

impl<T> OptionTy for SomeTy<T>

Source§

const EXISTS: bool = true