Struct squark::Element
[−]
[src]
pub struct Element { pub name: String, pub attributes: Vec<(String, AttributeValue)>, pub handlers: Vec<(String, (u64, String))>, pub children: Vec<Node>, }
Fields
name: String
attributes: Vec<(String, AttributeValue)>
handlers: Vec<(String, (u64, String))>
children: Vec<Node>
Methods
impl Element
[src]
pub fn new(
name: String,
attributes: Vec<(String, AttributeValue)>,
handlers: Vec<(String, (u64, String))>,
children: Vec<Node>
) -> Element
[src]
name: String,
attributes: Vec<(String, AttributeValue)>,
handlers: Vec<(String, (u64, String))>,
children: Vec<Node>
) -> Element
pub fn diff(a: &mut Element, b: &Element, j: &usize) -> Option<Diff>
[src]
Trait Implementations
impl Clone for Element
[src]
fn clone(&self) -> Element
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more