pub fn as_image_view(&self) -> Result<ImageView, ImageDataError> {
		match self {
			Self::Box(x) => Ok(x.as_view()),
			Self::Arc(x) => Ok(x.as_view()),
			Self::BoxDyn(x) => x.as_image_view(),
			Self::ArcDyn(x) => x.as_image_view(),
			Self::Invalid(e) => Err(e.clone()),
		}
	}
/// Get a non-owning view of the image data.
Get a non-owning view of the image data.
Get a non - owning view of the image data .
pub fn as_image_view(&self) -> Result<ImageView, ImageDataError> {
		match self {
			Self::Box(x) => Ok(x.as_view()),
			Self::Arc(x) => Ok(x.as_view()),
			Self::BoxDyn(x) => x.as_image_view(),
			Self::ArcDyn(x) => x.as_image_view(),
			Self::Invalid(e) => Err(e.clone()),
		}
	}
pub fn as_image_view ( & self ) -> Result < ImageView , ImageDataError > { match self { Self :: Box ( x ) => Ok ( x . as_view ( ) ) , Self :: Arc ( x ) => Ok ( x . as_view ( ) ) , Self :: BoxDyn ( x ) => x . as_image_view ( ) , Self :: ArcDyn ( x ) => x . as_image_view ( ) , Self :: Invalid ( e ) => Err ( e . clone ( ) ) , } }
Get a non-owning view of the image data.
Get a non - owning view of the image data .
&self