pub struct ComputeTextAlternativeOptions {
pub compute: Option<Compute>,
pub get_computed_style: Option<GetComputedStyle>,
pub hidden: Option<bool>,
}
Expand description
Options for [compute_text_alternative
].
Fields§
§compute: Option<Compute>
§get_computed_style: Option<GetComputedStyle>
Mock window.get_computed_style
. Needs content
, display
and visibility
.
Set to true
if you want to include hidden elements in the accessible name and description computation.
Skips 2A in https://w3c.github.io/accname/#computation-steps.
Defaults to false
.
Trait Implementations§
Source§impl Clone for ComputeTextAlternativeOptions
impl Clone for ComputeTextAlternativeOptions
Source§fn clone(&self) -> ComputeTextAlternativeOptions
fn clone(&self) -> ComputeTextAlternativeOptions
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 Default for ComputeTextAlternativeOptions
impl Default for ComputeTextAlternativeOptions
Source§fn default() -> ComputeTextAlternativeOptions
fn default() -> ComputeTextAlternativeOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ComputeTextAlternativeOptions
impl !RefUnwindSafe for ComputeTextAlternativeOptions
impl !Send for ComputeTextAlternativeOptions
impl !Sync for ComputeTextAlternativeOptions
impl Unpin for ComputeTextAlternativeOptions
impl !UnwindSafe for ComputeTextAlternativeOptions
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