Struct svg_diff::config::MatchingRule
source · [−]pub struct MatchingRule {
pub name: String,
pub apply_to_tags: Option<HashSet<String>>,
pub dont_apply_to_tags: HashSet<String>,
pub attr: Option<MatchingAttrRule>,
pub include_text: bool,
pub recursive: bool,
pub childrens_rule: Option<String>,
pub sort_children: bool,
pub prev_sibling_rule: Option<String>,
pub next_sibling_rule: Option<String>,
}
Fields
name: String
attr: Option<MatchingAttrRule>
include_text: bool
recursive: bool
childrens_rule: Option<String>
sort_children: bool
prev_sibling_rule: Option<String>
next_sibling_rule: Option<String>
Implementations
sourceimpl MatchingRule
impl MatchingRule
pub fn new_all_rule() -> MatchingRule
pub fn new_all_without_subtrees_rule() -> MatchingRule
pub fn new_all_subtrees_rule() -> MatchingRule
pub fn default_rules() -> Vec<MatchingRule>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
pub fn applies_to_tag(&self, tag: &Tag) -> bool
pub fn included_sorted_attr<'a>(&self, tag: &'a Tag) -> Vec<&'a String>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
Trait Implementations
sourceimpl<'de> Deserialize<'de> for MatchingRule
impl<'de> Deserialize<'de> for MatchingRule
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for MatchingRule
impl Send for MatchingRule
impl Sync for MatchingRule
impl Unpin for MatchingRule
impl UnwindSafe for MatchingRule
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more