pub struct DedupeOptions {
pub tolerance: f64,
pub extra_attrs: Vec<String>,
}Expand description
Options for duplicate character detection and removal.
Fields§
§tolerance: f64Maximum distance (in points) between character positions to consider
them as duplicates. Default: 1.0.
extra_attrs: Vec<String>Additional character attributes that must match for two characters to be
considered duplicates. Default: ["fontname", "size"].
Supported attribute names: "fontname", "size", "upright",
"stroking_color", "non_stroking_color".
Trait Implementations§
Source§impl Clone for DedupeOptions
impl Clone for DedupeOptions
Source§fn clone(&self) -> DedupeOptions
fn clone(&self) -> DedupeOptions
Returns a duplicate 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 DedupeOptions
impl Debug for DedupeOptions
Auto Trait Implementations§
impl Freeze for DedupeOptions
impl RefUnwindSafe for DedupeOptions
impl Send for DedupeOptions
impl Sync for DedupeOptions
impl Unpin for DedupeOptions
impl UnsafeUnpin for DedupeOptions
impl UnwindSafe for DedupeOptions
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