Trait spirv_std::image::sample_with::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)

Object Safety§

This trait is not object safe.

Implementors§

source§

impl OptionTy for NoneTy

source§

const EXISTS: bool = false

source§

impl<T> OptionTy for SomeTy<T>

source§

const EXISTS: bool = true