Trait red4ext_rs::ScriptClassOps

source ·
pub trait ScriptClassOps: ScriptClass + Sealed {
    // Required methods
    fn new_ref() -> Option<Ref<Self>>;
    fn new_ref_with(init: impl FnOnce(&mut Self)) -> Option<Ref<Self>>;
}
Expand description

A trait for operations on script classes.

Required Methods§

source

fn new_ref() -> Option<Ref<Self>>

Creates a new reference to the class.

source

fn new_ref_with(init: impl FnOnce(&mut Self)) -> Option<Ref<Self>>

Creates a new reference to the class and initializes it with the provided function.

Object Safety§

This trait is not object safe.

Implementors§