pub struct VFragment<'src> {
    pub key: Option<&'src str>,
    pub children: &'src [VNode<'src>],
}
Expand description

A list of VNodes with no single root.

Fields

key: Option<&'src str>

The key of the fragment to be used during keyed diffing.

children: &'src [VNode<'src>]

Fragments can never have zero children. Enforced by NodeFactory.

You can make a fragment with no children, but it’s not a valid fragment and your VDom will panic.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.