[][src]Struct typed_html::dom::TextNode

pub struct TextNode<T: OutputType>(_, _);

An HTML text node.

Methods

impl<T: OutputType> TextNode<T>[src]

pub fn new<S: Into<String>>(s: S) -> Self[src]

Construct a text node.

The preferred way to construct a text node is with the text!() macro.

Trait Implementations

impl<T: OutputType> Node<T> for TextNode<T>[src]

impl<T: OutputType> FlowContent<T> for TextNode<T>[src]

impl<T: OutputType> PhrasingContent<T> for TextNode<T>[src]

impl<T: OutputType> IntoIterator for TextNode<T>[src]

type Item = TextNode<T>

The type of the elements being iterated over.

type IntoIter = IntoIter<TextNode<T>>

Which kind of iterator are we turning this into?

impl<T: OutputType> Display for TextNode<T>[src]

Auto Trait Implementations

impl<T> Send for TextNode<T> where
    T: Send

impl<T> Sync for TextNode<T> where
    T: Sync

Blanket Implementations

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

impl<T> ToString for T where
    T: Display + ?Sized
[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> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?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

The type returned in the event of a conversion error.

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