Skip to main content

ToNumber

Trait ToNumber 

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

Required Methods§

Source

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

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> ToNumber<'a> for Expression<'a>

Source§

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

Implementors§

Source§

impl<'a> ToNumber<'a> for ConstantValue<'a>