1 2 3 4 5 6 7 8 9
use core::any::Any; use crate::runtime::gc::GcTrace; use crate::runtime::types::{Type, MetaObject}; /// Trait for custom data pub trait UserData: Any + GcTrace + MetaObject { fn type_tag(&self) -> Type { Type::UserData } }