pub enum ImageResult {
Ok,
ZeroImage,
SingularMatrix,
ArbitraryTransformSkipped,
}Expand description
Return value from fill_image_mask and draw_image.
Variants§
Ok
Rendering completed successfully.
ZeroImage
Source image has zero width or height; nothing rendered.
SingularMatrix
The transformation matrix is singular (determinant ≈ 0).
ArbitraryTransformSkipped
The matrix is not axis-aligned; the arbitrary-transform path is not yet implemented in Phase 1. The caller should handle this case.
Trait Implementations§
Source§impl Clone for ImageResult
impl Clone for ImageResult
Source§fn clone(&self) -> ImageResult
fn clone(&self) -> ImageResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ImageResult
impl Debug for ImageResult
Source§impl PartialEq for ImageResult
impl PartialEq for ImageResult
Source§fn eq(&self, other: &ImageResult) -> bool
fn eq(&self, other: &ImageResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ImageResult
impl Eq for ImageResult
impl StructuralPartialEq for ImageResult
Auto Trait Implementations§
impl Freeze for ImageResult
impl RefUnwindSafe for ImageResult
impl Send for ImageResult
impl Sync for ImageResult
impl Unpin for ImageResult
impl UnsafeUnpin for ImageResult
impl UnwindSafe for ImageResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more