[][src]Struct yew::virtual_dom::VText

pub struct VText {
    pub text: String,
    pub reference: Option<TextNode>,
}

A type for a virtual TextNode representation.

Fields

text: String

Contains a text of the node.

reference: Option<TextNode>

A reference to the TextNode.

Implementations

impl VText[src]

pub fn new(text: String) -> Self[src]

Creates new virtual text node with a content.

Trait Implementations

impl Clone for VText[src]

impl Debug for VText[src]

impl From<VText> for VNode[src]

impl PartialEq<VText> for VText[src]

Auto Trait Implementations

impl RefUnwindSafe for VText

impl !Send for VText

impl !Sync for VText

impl Unpin for VText

impl UnwindSafe for VText

Blanket Implementations

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

impl<T> Any for T where
    T: Any
[src]

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

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

impl<T> CloneAny for T where
    T: Clone + Any
[src]

impl<T> From<T> for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.