#[repr(usize)]pub enum ImageCropAndScaleOption {
CenterCrop = 0,
ScaleFit = 1,
ScaleFill = 2,
ScaleFitRotate90Ccw = 257,
ScaleFillRotate90Ccw = 258,
}Expand description
Mirrors VNImageCropAndScaleOption.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for ImageCropAndScaleOption
impl Clone for ImageCropAndScaleOption
Source§fn clone(&self) -> ImageCropAndScaleOption
fn clone(&self) -> ImageCropAndScaleOption
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 ImageCropAndScaleOption
impl Debug for ImageCropAndScaleOption
Source§impl From<CoreMLImageCropAndScaleOption> for ImageCropAndScaleOption
Available on crate feature coreml only.
impl From<CoreMLImageCropAndScaleOption> for ImageCropAndScaleOption
Available on crate feature
coreml only.Source§fn from(value: CoreMLImageCropAndScaleOption) -> Self
fn from(value: CoreMLImageCropAndScaleOption) -> Self
Converts to this type from the input type.
Source§impl From<ImageCropAndScaleOption> for CoreMLImageCropAndScaleOption
Available on crate feature coreml only.
impl From<ImageCropAndScaleOption> for CoreMLImageCropAndScaleOption
Available on crate feature
coreml only.Source§fn from(value: ImageCropAndScaleOption) -> Self
fn from(value: ImageCropAndScaleOption) -> Self
Converts to this type from the input type.
Source§impl Hash for ImageCropAndScaleOption
impl Hash for ImageCropAndScaleOption
Source§impl PartialEq for ImageCropAndScaleOption
impl PartialEq for ImageCropAndScaleOption
Source§fn eq(&self, other: &ImageCropAndScaleOption) -> bool
fn eq(&self, other: &ImageCropAndScaleOption) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ImageCropAndScaleOption
impl Eq for ImageCropAndScaleOption
impl StructuralPartialEq for ImageCropAndScaleOption
Auto Trait Implementations§
impl Freeze for ImageCropAndScaleOption
impl RefUnwindSafe for ImageCropAndScaleOption
impl Send for ImageCropAndScaleOption
impl Sync for ImageCropAndScaleOption
impl Unpin for ImageCropAndScaleOption
impl UnsafeUnpin for ImageCropAndScaleOption
impl UnwindSafe for ImageCropAndScaleOption
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