ModelParams

Trait ModelParams 

Source
pub trait ModelParams:
    Send
    + Sync
    + Debug {
    // Required method
    fn as_any(&self) -> &dyn Any;
}
Expand description

Marker trait for type-erased parameter structs.

The trait is deliberately minimal: it only provides a safe down-casting hook via as_any. This keeps the object safe and avoids imposing additional requirements on concrete parameter types.

Required Methods§

Source

fn as_any(&self) -> &dyn Any

Returns the boxed value as &dyn Any so that callers can attempt a concrete downcast_ref::<T>() when the concrete type is known.

Implementors§