pub trait TypeOption {
    // Required method
    fn is(
&self,
pred: fn(_: &Type, _: &Context) -> bool,
context: &Context
) -> bool; }
Expand description

A helper to check if an Option value is of a particular Type.

Required Methods§

source

fn is(&self, pred: fn(_: &Type, _: &Context) -> bool, context: &Context) -> bool

Implementations on Foreign Types§

source§

impl TypeOption for Option<Type>

source§

fn is(&self, pred: fn(_: &Type, _: &Context) -> bool, context: &Context) -> bool

Implementors§