Struct squark::View
[−]
[src]
pub struct View<A> { /* fields omitted */ }
Methods
impl<A> View<A>
[src]
pub fn new(
name: String,
attributes: Vec<(String, AttributeValue)>,
handlers: Vec<(String, (u64, String, Box<Fn(HandlerArg) -> Option<A>>))>,
children: Vec<View<A>>
) -> View<A>
[src]
name: String,
attributes: Vec<(String, AttributeValue)>,
handlers: Vec<(String, (u64, String, Box<Fn(HandlerArg) -> Option<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>>,