Skip to main content

ImageModelRef

Type Alias ImageModelRef 

Source
pub type ImageModelRef = ModelRef<dyn DynImageModel>;
Expand description

Shared reference to an image model (or an unresolved model id).

Aliased Type§

pub struct ImageModelRef(/* private fields */);

Trait Implementations§

Source§

impl<T: ImageModel> From<Arc<T>> for ImageModelRef

Source§

fn from(model: Arc<T>) -> Self

Converts to this type from the input type.
Source§

impl<T: ImageModel> From<T> for ImageModelRef

Source§

fn from(model: T) -> Self

Converts to this type from the input type.