Trait ImplTypeStatic

Source
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§

Source

fn get_name(&self) -> &str

Source

fn new(&self, _: &T) -> T::ImplType

Source

fn class_init(&self, _: &mut ClassStruct<T>)

Provided Methods§

Source

fn type_init(&self, _: &TypeInitToken, _type_: Type)

Implementors§