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