[][src]Trait ffimage::core::traits::TryConvertSlice

pub trait TryConvertSlice<DP: Pixel>: Sized {
    type Error: Debug;
    fn try_convert(input: &[Self], output: &mut [DP]) -> Result<(), Self::Error>;
}

Convert into a slice of types

Associated Types

type Error: Debug

Loading content...

Required methods

fn try_convert(input: &[Self], output: &mut [DP]) -> Result<(), Self::Error>

Converts the buffer into another, possibly with a different format

Loading content...

Implementors

impl<SP: Pixel, DP: Pixel + From<SP>> TryConvertSlice<DP> for SP[src]

type Error = ()

Loading content...