Skip to main content

UnwrapOrUndefined

Trait UnwrapOrUndefined 

Source
pub trait UnwrapOrUndefined<'js> {
    // Required method
    fn unwrap_or_undefined(self, ctx: &Ctx<'js>) -> Value<'js>;
}

Required Methods§

Source

fn unwrap_or_undefined(self, ctx: &Ctx<'js>) -> Value<'js>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<'js> UnwrapOrUndefined<'js> for Option<Value<'js>>

Source§

fn unwrap_or_undefined(self, ctx: &Ctx<'js>) -> Value<'js>

Implementors§