Skip to main content

HasModel

Trait HasModel 

Source
pub trait HasModel {
    // Required method
    fn get_model(&self) -> &Arc<Model> ⓘ;
}

Required Methods§

Source

fn get_model(&self) -> &Arc<Model> ⓘ

Returns the shared physics model associated with this computation context. Decoded graphs bind to this handle instead of persisting their own copy.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl HasModel for Arc<Model>

Implementors§