Skip to main content

ToBoolean

Trait ToBoolean 

Source
pub trait ToBoolean<'a> {
    // Required method
    fn to_boolean(&self, ctx: &impl GlobalContext<'a>) -> Option<bool>;
}
Expand description

Required Methods§

Source

fn to_boolean(&self, ctx: &impl GlobalContext<'a>) -> Option<bool>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<'a> ToBoolean<'a> for Expression<'a>

Source§

fn to_boolean(&self, ctx: &impl GlobalContext<'a>) -> Option<bool>

Implementors§

Source§

impl<'a> ToBoolean<'a> for ConstantValue<'a>