pub struct A11yReport {
pub violations: Vec<A11yViolation>,
}Expand description
Accessibility report.
Fields§
§violations: Vec<A11yViolation>List of violations found
Implementations§
Source§impl A11yReport
impl A11yReport
Sourcepub fn is_passing(&self) -> bool
pub fn is_passing(&self) -> bool
Check if all accessibility tests passed.
Sourcepub fn critical(&self) -> Vec<&A11yViolation>
pub fn critical(&self) -> Vec<&A11yViolation>
Get critical violations only.
Sourcepub fn assert_pass(&self)
pub fn assert_pass(&self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for A11yReport
impl RefUnwindSafe for A11yReport
impl Send for A11yReport
impl Sync for A11yReport
impl Unpin for A11yReport
impl UnwindSafe for A11yReport
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more