blua::userdata_stuff

Trait ValueExt

Source
pub trait ValueExt<'gc> {
    // Required method
    fn as_static_user_data<T: 'static>(&self) -> Result<&'gc T, TypeError>;
}

Required Methods§

Source

fn as_static_user_data<T: 'static>(&self) -> Result<&'gc T, TypeError>

Convert to a static user data type.

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<'gc> ValueExt<'gc> for Value<'gc>

Implementors§