pub trait ValueExt<'gc> {
// Required method
fn as_static_user_data<T: 'static>(&self) -> Result<&'gc T, TypeError>;
}Required Methods§
Sourcefn as_static_user_data<T: 'static>(&self) -> Result<&'gc T, TypeError>
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.