Trait image_texel::layout::TryMend
source · [−]pub trait TryMend<From> {
type Into: Layout;
type Err;
fn try_mend(self, from: &From) -> Result<Self::Into, Self::Err>;
}
Expand description
Try to convert a layout to a stricter one.
Required Associated Types
Required Methods
Implementors
sourceimpl<P> TryMend<MatrixBytes> for Texel<P>
impl<P> TryMend<MatrixBytes> for Texel<P>
Try to use the matrix with a specific pixel type.
type Into = Matrix<P>
type Err = MismatchedPixelError
sourceimpl<P> TryMend<StridedBytes> for Texel<P>
impl<P> TryMend<StridedBytes> for Texel<P>
Try to use the matrix with a specific pixel type.