[][src]Trait sauron::html::attributes::Special

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

    fn get_key(&self) -> Option<&Value> { ... }
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

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

get the first attribute value with this attribute name

Loading content...

Provided methods

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

return the value of "key" attribute

fn is_focused(&self) -> bool

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