Struct squark::View
[−]
[src]
pub struct View<A> { pub node: Node, pub handler_map: HandlerMap<A>, }
Fields
node: Node
handler_map: HandlerMap<A>
Methods
impl<A> View<A>
[src]
pub fn new(
name: String,
attributes: Attributes,
handlers: Vec<(String, (u64, String, HandlerFunction<A>))>,
children: Vec<View<A>>
) -> View<A>
[src]
name: String,
attributes: Attributes,
handlers: Vec<(String, (u64, String, HandlerFunction<A>))>,
children: Vec<View<A>>
) -> View<A>
pub fn text(s: String) -> View<A>
[src]
pub fn null() -> View<A>
[src]
Trait Implementations
impl<A> From<()> for View<A>
[src]
impl<A> From<String> for View<A>
[src]
impl<'a, A> From<&'a str> for View<A>
[src]
impl<A, T> From<Option<T>> for View<A> where
T: Into<View<A>>,
[src]
T: Into<View<A>>,