Trait bones_scripting::lua::ValueExt

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

Extension trait on top of [Value] to add helper functions.

Required Methods§

source

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

Convert to a static user data type.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'gc> ValueExt<'gc> for Value<'gc>

source§

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

Implementors§