Trait PropMatcher

Source
pub trait PropMatcher<'a> {
    // Required methods
    fn get_name_and_exp(
        prop: &ElemProp<'a>,
    ) -> Option<(&'a str, Option<VStr<'a>>)>;
    fn get_ref<'b>(prop: &'b ElemProp<'a>) -> &'b Self;
    fn take(prop: ElemProp<'a>) -> Self;

    // Provided method
    fn is_match<P>(p: &ElemProp<'a>, pat: &P, allow_empty: bool) -> bool
       where P: PropPattern { ... }
}

Required Methods§

Source

fn get_name_and_exp(prop: &ElemProp<'a>) -> Option<(&'a str, Option<VStr<'a>>)>

Source

fn get_ref<'b>(prop: &'b ElemProp<'a>) -> &'b Self

Source

fn take(prop: ElemProp<'a>) -> Self

Provided Methods§

Source

fn is_match<P>(p: &ElemProp<'a>, pat: &P, allow_empty: bool) -> bool
where P: PropPattern,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'a> PropMatcher<'a> for ElemProp<'a>

Source§

impl<'a> PropMatcher<'a> for Directive<'a>