pub struct VText<'src> {
    pub id: Cell<Option<ElementId>>,
    pub text: &'src str,
    pub is_static: bool,
}
Expand description

A bump-allocated string slice and metadata.

Fields

id: Cell<Option<ElementId>>

The ElementId of the VText.

text: &'src str

The text of the VText.

is_static: bool

An indiciation if this VText can be ignored during diffing Is usually only when there are no strings to be formatted (so the text is &’static str)

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.