pub trait Special {
    // Required method
    fn get_value<'a>(&'a self, att_name: &'static str) -> Option<&'a Value>;

    // Provided method
    fn get_key(&self) -> Option<&Value> { ... }
}
Expand description

Special Node attributes that are treated differently such as key and skip which both greatly affects the diffing algorithm

Required Methods§

source

fn get_value<'a>(&'a self, att_name: &'static str) -> Option<&'a Value>

get the first attribute value with this attribute name

Provided Methods§

source

fn get_key(&self) -> Option<&Value>

return the value of “key” attribute

Implementors§

source§

impl<MSG> Special for Element<MSG>

source§

impl<MSG> Special for Node<MSG>