Struct libvips_rs::ops::SmartcropOptions
source · pub struct SmartcropOptions {
pub interesting: Interesting,
}
Expand description
Options for smartcrop operation
Fields§
§interesting: Interesting
interesting: Interesting
-> How to measure interestingness
None
-> VIPS_INTERESTING_NONE = 0
Centre
-> VIPS_INTERESTING_CENTRE = 1
Entropy
-> VIPS_INTERESTING_ENTROPY = 2
Attention
-> VIPS_INTERESTING_ATTENTION = 3 [DEFAULT]
Low
-> VIPS_INTERESTING_LOW = 4
High
-> VIPS_INTERESTING_HIGH = 5
All
-> VIPS_INTERESTING_ALL = 6
Last
-> VIPS_INTERESTING_LAST = 7
Trait Implementations§
source§impl Clone for SmartcropOptions
impl Clone for SmartcropOptions
source§fn clone(&self) -> SmartcropOptions
fn clone(&self) -> SmartcropOptions
Returns a copy of the value. Read more
1.0.0 · 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 SmartcropOptions
impl Debug for SmartcropOptions
Auto Trait Implementations§
impl RefUnwindSafe for SmartcropOptions
impl Send for SmartcropOptions
impl Sync for SmartcropOptions
impl Unpin for SmartcropOptions
impl UnwindSafe for SmartcropOptions
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