[][src]Struct ritz::Fragment

pub struct Fragment<'a> {
    pub children: Vec<HtmlContent<'a>>,
}

Fields

children: Vec<HtmlContent<'a>>

Methods

impl<'a> Fragment<'a>[src]

pub fn new<T>(iter: T) -> Fragment<'a> where
    T: IntoIterator,
    T::Item: Into<HtmlContent<'a>>, 
[src]

pub fn add_child<T: Into<HtmlContent<'a>>>(&mut self, child: T)[src]

Trait Implementations

impl<'a> From<Fragment<'a>> for HtmlContent<'a>[src]

impl<'a> PartialEq<Fragment<'a>> for Fragment<'a>[src]

impl<'a> IntoIterator for Fragment<'a>[src]

type Item = HtmlContent<'a>

The type of the elements being iterated over.

type IntoIter = IntoIter<Self::Item>

Which kind of iterator are we turning this into?

impl<'a> FromIterator<HtmlContent<'a>> for Fragment<'a>[src]

impl<'a> Debug for Fragment<'a>[src]

impl<'a> Display for Fragment<'a>[src]

Auto Trait Implementations

impl<'a> Send for Fragment<'a>

impl<'a> Sync for Fragment<'a>

Blanket Implementations

impl<T> From for T[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.