pub trait ImageRefExt: ImageRef {
// Provided methods
fn bounds_check(&self) -> Result<(), BoundsCheckError> { ... }
fn crop(self, window: Window) -> Result<Cropped<Self>, CropError>
where Self: Sized { ... }
fn crop_even(self) -> Result<Cropped<Self>, CropError>
where Self: Sized { ... }
}Expand description
ImageRef extension methods
Provided Methods§
Sourcefn bounds_check(&self) -> Result<(), BoundsCheckError>
fn bounds_check(&self) -> Result<(), BoundsCheckError>
Perform a bounds check, return an error when it fails