pub struct FindTrimOptions {
pub threshold: f64,
pub background: Vec<f64>,
pub line_art: bool,
}
Expand description
Options for find_trim operation
Fields§
§threshold: f64
threshold: f64
-> Object threshold
min: 0, max: inf, default: 10
background: Vec<f64>
background: Vec<f64>
-> Color for background pixels
line_art: bool
line_art: bool
-> Enable line art mode
default: false
Trait Implementations§
Source§impl Clone for FindTrimOptions
impl Clone for FindTrimOptions
Source§fn clone(&self) -> FindTrimOptions
fn clone(&self) -> FindTrimOptions
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 FindTrimOptions
impl Debug for FindTrimOptions
Auto Trait Implementations§
impl Freeze for FindTrimOptions
impl RefUnwindSafe for FindTrimOptions
impl Send for FindTrimOptions
impl Sync for FindTrimOptions
impl Unpin for FindTrimOptions
impl UnwindSafe for FindTrimOptions
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