[][src]Trait sauron::prelude::Special

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

    pub fn get_key(&self) -> Option<&Value> { ... }
pub fn is_focused(&self) -> bool { ... } }

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

Required methods

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

get the first attribute value with this attribute name

Loading content...

Provided methods

pub fn get_key(&self) -> Option<&Value>[src]

return the value of "key" attribute

pub fn is_focused(&self) -> bool[src]

return the boolean value of the "focus" attribute of this node

Loading content...

Implementors

impl<MSG> Special for Node<&'static str, &'static str, &'static str, AttributeValue, Event, MSG>[src]

impl<MSG> Special for Element<&'static str, &'static str, &'static str, AttributeValue, Event, MSG>[src]

Loading content...