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§
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 Methods§
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.