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 Clone for MatchingRule
impl Clone for MatchingRule
sourcefn clone(&self) -> MatchingRule
fn clone(&self) -> MatchingRule
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for MatchingRule
impl Debug for MatchingRule
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
sourceimpl Serialize for MatchingRule
impl Serialize for MatchingRule
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