pub struct DistillConfig {
pub drop_redundant_static_text: bool,
pub drop_empty_nodes: bool,
}Expand description
Tuning for distill_snapshot.
Fields§
§drop_redundant_static_text: boolDrop a StaticText line whose quoted text duplicates the accessible
name of the interactive element immediately above it at a shallower
indent (the most common redundancy in the a11y tree).
drop_empty_nodes: boolDrop nodes with no uid and no quoted name (pure structural noise).
Trait Implementations§
Source§impl Clone for DistillConfig
impl Clone for DistillConfig
Source§fn clone(&self) -> DistillConfig
fn clone(&self) -> DistillConfig
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 DistillConfig
impl Debug for DistillConfig
Auto Trait Implementations§
impl Freeze for DistillConfig
impl RefUnwindSafe for DistillConfig
impl Send for DistillConfig
impl Sync for DistillConfig
impl Unpin for DistillConfig
impl UnsafeUnpin for DistillConfig
impl UnwindSafe for DistillConfig
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