pub trait ImplTypeStatic<T: ObjectType>:
Send
+ Sync
+ 'static {
// Required methods
fn get_name(&self) -> &str;
fn new(&self, _: &T) -> T::ImplType;
fn class_init(&self, _: &mut ClassStruct<T>);
// Provided method
fn type_init(&self, _: &TypeInitToken, _type_: Type) { ... }
}Required Methods§
fn get_name(&self) -> &str
fn new(&self, _: &T) -> T::ImplType
fn class_init(&self, _: &mut ClassStruct<T>)
Provided Methods§
fn type_init(&self, _: &TypeInitToken, _type_: Type)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".