Enum yew::virtual_dom::VNode[][src]

pub enum VNode {
    VTag(Box<VTag>),
    VText(VText),
    VComp(VComp),
    VList(VList),
    VPortal(VPortal),
    VRef(Node),
}
Expand description

Bind virtual element to a DOM reference.

Variants

VTag(Box<VTag>)

Tuple Fields

0: Box<VTag>

A bind between VTag and Element.

VText(VText)

Tuple Fields

0: VText

A bind between VText and TextNode.

VComp(VComp)

Tuple Fields

0: VComp

A bind between VComp and Element.

VList(VList)

Tuple Fields

0: VList

A holder for a list of other nodes.

VPortal(VPortal)

Tuple Fields

A portal to another part of the document

VRef(Node)

Tuple Fields

0: Node

A holder for any Node (necessary for replacing node).

Implementations

Returns true if the VNode has a key without needlessly cloning the key.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Creates a value from an iterator. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

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

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.