pub unsafe trait IsSubclassable<T>: IsSubclassableDefault<T>where
    T: ObjectSubclass,{
    // Provided methods
    fn class_init(class: &mut Class<Self>) { ... }
    fn instance_init(instance: &mut InitializingObject<T>) { ... }
}
Expand description

Trait for subclassable class structs.

Provided Methods§

source

fn class_init(class: &mut Class<Self>)

Override the virtual methods of this class for the given subclass and do other class initialization.

This is automatically called during type initialization and must call class_init() of the parent class.

source

fn instance_init(instance: &mut InitializingObject<T>)

Instance specific initialization.

This is automatically called during instance initialization and must call instance_init() of the parent class.

Implementations on Foreign Types§

source§

impl<T> IsSubclassable<T> for SocketControlMessagewhere T: SocketControlMessageImpl,

source§

impl<T> IsSubclassable<T> for IOStreamwhere T: IOStreamImpl,

source§

impl<T> IsSubclassable<T> for OutputStreamwhere T: OutputStreamImpl,

source§

impl<T> IsSubclassable<T> for InputStreamwhere T: InputStreamImpl,

source§

impl<T> IsSubclassable<T> for Applicationwhere T: ApplicationImpl,

Implementors§