Struct squark::View [−][src]
pub struct View<A> { /* fields omitted */ }
Methods
impl<A> View<A>
[src]
impl<A> View<A>
pub fn new(
name: String,
attributes: Vec<(String, AttributeValue)>,
handlers: Vec<(String, (String, Box<Fn(HandlerArg) -> Option<A>>))>,
children: Vec<Child<A>>
) -> View<A>
[src]
pub fn new(
name: String,
attributes: Vec<(String, AttributeValue)>,
handlers: Vec<(String, (String, Box<Fn(HandlerArg) -> Option<A>>))>,
children: Vec<Child<A>>
) -> View<A>
pub fn text(s: String) -> View<A>
[src]
pub fn text(s: String) -> View<A>
pub fn null() -> View<A>
[src]
pub fn null() -> View<A>
Trait Implementations
impl<A> FromIterator<View<A>> for Child<A>
[src]
impl<A> FromIterator<View<A>> for Child<A>
fn from_iter<I>(iter: I) -> Child<A> where
I: IntoIterator<Item = View<A>>,
[src]
fn from_iter<I>(iter: I) -> Child<A> where
I: IntoIterator<Item = View<A>>,
Creates a value from an iterator. Read more
impl<A> From<()> for View<A>
[src]
impl<A> From<()> for View<A>
impl<A> From<String> for View<A>
[src]
impl<A> From<String> for View<A>
impl<'a, A> From<&'a str> for View<A>
[src]
impl<'a, A> From<&'a str> for View<A>
impl<A, T> From<Option<T>> for View<A> where
T: Into<View<A>>,
[src]
impl<A, T> From<Option<T>> for View<A> where
T: Into<View<A>>,