accessibility-rs 0.1.7

Web accessibility engine for Rust.
Documentation
use strum_macros::IntoStaticStr;

#[derive(PartialOrd, Ord, std::cmp::Eq, PartialEq, Hash, Debug, IntoStaticStr, Clone)]
/// techniques for WCAG <https://www.w3.org/TR/WCAG20-TECHS/>
pub enum Techniques {
    /// <https://www.w3.org/TR/WCAG20-TECHS/H2>
    H2,
    /// <https://www.w3.org/TR/WCAG20-TECHS/H24>
    H24,
    /// <https://www.w3.org/TR/WCAG20-TECHS/H25>
    H25,
    /// <https://www.w3.org/TR/WCAG20-TECHS/H32.html>
    H32,
    /// <https://www.w3.org/TR/WCAG20-TECHS/H30>
    H30,
    /// <https://www.w3.org/TR/WCAG20-TECHS/H35>
    H35,
    /// <https://www.w3.org/TR/WCAG20-TECHS/H36>
    H36,
    /// <https://www.w3.org/TR/WCAG20-TECHS/H37>
    H37,
    /// <https://www.w3.org/TR/WCAG20-TECHS/H42>
    H42,
    /// <https://www.w3.org/TR/WCAG20-TECHS/H44>
    H44,
    /// <https://www.w3.org/TR/WCAG20-TECHS/H53>
    H53,
    /// <https://www.w3.org/TR/WCAG20-TECHS/H57>
    H57,
    /// <https://www.w3.org/TR/WCAG20-TECHS/H63>
    H63,
    /// <https://www.w3.org/TR/WCAG20-TECHS/H64>
    H64,
    /// <https://www.w3.org/TR/WCAG20-TECHS/H67>
    H67,
    /// <https://www.w3.org/TR/WCAG20-TECHS/H71>
    H71,
    /// <https://www.w3.org/TR/WCAG20-TECHS/H91>
    H91,
    /// <https://www.w3.org/TR/WCAG20-TECHS/H93>
    H93,
    /// <https://www.w3.org/TR/WCAG20-TECHS/F40>
    F40,
    /// <https://www.w3.org/TR/WCAG20-TECHS/F41>
    F41,
    /// <https://www.w3.org/TR/WCAG20-TECHS/F47>
    F47,
    /// <https://www.w3.org/TR/WCAG20-TECHS/F77>
    F77,
    /// <https://www.w3.org/TR/WCAG20-TECHS/G18>
    G18,
}

impl Techniques {
    /// get rule id to string
    pub fn as_str(&self) -> &'static str {
        self.into()
    }
}