ezk_image

Trait ImageRefExt

Source
pub trait ImageRefExt: ImageRef {
    // Provided methods
    fn bounds_check(&self) -> Result<(), BoundsCheckError> { ... }
    fn crop(self, window: Window) -> Result<Cropped<Self>, CropError>
       where Self: Sized { ... }
}
Expand description

ImageRef extension methods

Provided Methods§

Source

fn bounds_check(&self) -> Result<(), BoundsCheckError>

Source

fn crop(self, window: Window) -> Result<Cropped<Self>, CropError>
where Self: Sized,

Crop the image with the given window

Implementors§