Enum percy_dom::PatchSpecialAttribute[][src]

pub enum PatchSpecialAttribute<'a> {
    CallOnCreateElem(usize, &'a VirtualNode),
    SetDangerousInnerHtml(usize, &'a VirtualNode),
    RemoveDangerousInnerHtml(usize),
}
Expand description

Patches that apply to [SpecialAttributes].

Variants

CallOnCreateElem

Call the [SpecialAttributes.on_create_elem] function on the node.

Tuple Fields of CallOnCreateElem

0: usize1: &'a VirtualNode
SetDangerousInnerHtml

Set the node’s innerHTML using the [SpecialAttributes.dangerous_inner_html].

Tuple Fields of SetDangerousInnerHtml

0: usize1: &'a VirtualNode
RemoveDangerousInnerHtml

Set the node’s innerHTML to an empty string.

Tuple Fields of RemoveDangerousInnerHtml

0: usize

Trait Implementations

Formats the value using the given formatter. 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.

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.