Enum virtual_view::View
[−]
[src]
pub enum View {
Text(String),
Data {
kind: String,
key: Option<String>,
props: Map<String, Value>,
events: Events,
children: Vec<View>,
},
}Variants
Text(String)DataFields of Data
kind: String | |
key: Option<String> | |
props: Map<String, Value> | |
events: Events | |
children: Vec<View> |
Methods
impl View[src]
fn new(
kind: &str,
props: Map<String, Value>,
events: Events,
children: Vec<View>
) -> Self[src]
kind: &str,
props: Map<String, Value>,
events: Events,
children: Vec<View>
) -> Self
fn new_text(text: &str) -> Self[src]
fn new_data(kind: &str) -> Self[src]
fn kind(&self) -> Option<&String>[src]
fn key(&self) -> Option<&String>[src]
fn key_mut(&mut self) -> Option<&mut String>[src]
fn set_key(&mut self, new_key: String)[src]
fn props(&self) -> Option<&Map<String, Value>>[src]
fn props_mut(&mut self) -> Option<&mut Map<String, Value>>[src]
fn events(&self) -> Option<&Events>[src]
fn events_mut(&mut self) -> Option<&mut Events>[src]
fn children(&self) -> Option<&Vec<View>>[src]
fn children_mut(&mut self) -> Option<&mut Vec<View>>[src]
Trait Implementations
impl Debug for View[src]
impl Clone for View[src]
fn clone(&self) -> Self[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
impl PartialEq for View[src]
fn eq(&self, other: &View) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
This method tests for !=.
impl<T> From<T> for View where
T: ToString, [src]
T: ToString,