Skip to main content

Object

Trait Object 

Source
pub trait Object {
    // Required method
    fn add_child(
        &self,
        object_name: String,
        script_path: Option<PathBuf>,
    ) -> Option<&impl Object>;
}

Required Methods§

Source

fn add_child( &self, object_name: String, script_path: Option<PathBuf>, ) -> Option<&impl Object>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§