ModelTrait

Trait ModelTrait 

Source
pub trait ModelTrait {
    type Model;

    // Required method
    fn get_model_info(model: &Self::Model) -> Option<&ModelInfo<Self::Model>>;
}

Required Associated Types§

Required Methods§

Source

fn get_model_info(model: &Self::Model) -> Option<&ModelInfo<Self::Model>>

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§