Enum virtual_view::View
[−]
[src]
pub enum View { Text(String), Data { kind: ViewKind, key: Option<String>, props: Props, children: Children, }, }
Variants
Text(String)
Data
Fields of Data
kind: ViewKind | |
key: Option<String> | |
props: Props | |
children: Children |
Methods
impl View
[src]
pub fn new(kind: ViewKind, props: Props, children: Children) -> Self
[src]
pub fn new_empty() -> Self
[src]
pub fn new_text(text: &str) -> Self
[src]
pub fn new_data(kind: &str) -> Self
[src]
pub fn new_component<T>(component: T) -> Self where
T: Component,
[src]
T: Component,
pub fn is_text(&self) -> bool
[src]
pub fn is_data(&self) -> bool
[src]
pub fn kind(&self) -> Option<&ViewKind>
[src]
pub fn tag(&self) -> Option<&String>
[src]
pub fn component(&self) -> Option<&Arc<Component>>
[src]
pub fn has_key(&self) -> bool
[src]
pub fn clone_key(&self) -> Option<String>
[src]
pub fn key(&self) -> Option<&String>
[src]
pub fn set_key(&mut self, new_key: String)
[src]
pub fn set_key_option(&mut self, new_key: Option<String>)
[src]
pub fn props(&self) -> Option<&Props>
[src]
pub fn props_mut(&mut self) -> Option<&mut Props>
[src]
pub fn children(&self) -> Option<&Children>
[src]
pub fn children_mut(&mut self) -> Option<&mut Children>
[src]
pub fn clone_no_children(&self) -> Self
[src]
Trait Implementations
impl<'a> From<&'a View> for RawView
[src]
impl From<View> for RawView
[src]
impl Debug for View
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for View
[src]
fn clone(&self) -> View
[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, __arg_0: &View) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &View) -> bool
[src]
This method tests for !=
.
impl Sync for View
[src]
impl Send for View
[src]
impl<'a> From<&'a View> for View
[src]
impl<T> From<T> for View where
T: ToString,
[src]
T: ToString,