Enum percy_dom::PatchSpecialAttribute
source · pub enum PatchSpecialAttribute<'a> {
CallOnCreateElemOnExistingNode(u32, &'a VirtualNode),
CallOnRemoveElem(u32, &'a VirtualNode),
SetDangerousInnerHtml(u32, &'a VirtualNode),
RemoveDangerousInnerHtml(u32),
}
Expand description
Patches that apply to [SpecialAttributes
].
Variants§
CallOnCreateElemOnExistingNode(u32, &'a VirtualNode)
Call the [SpecialAttributes.on_create_elem
] function on the node.
We only push this patch for existing nodes. New nodes get their on_create_element called automatically when they are created.
CallOnRemoveElem(u32, &'a VirtualNode)
Call the [SpecialAttributes.on_remove_elem
] function on the node.
SetDangerousInnerHtml(u32, &'a VirtualNode)
Set the node’s innerHTML using the [SpecialAttributes.dangerous_inner_html
].
RemoveDangerousInnerHtml(u32)
Set the node’s innerHTML to an empty string.
Trait Implementations§
source§impl<'a> Debug for PatchSpecialAttribute<'a>
impl<'a> Debug for PatchSpecialAttribute<'a>
source§impl<'a> PartialEq<PatchSpecialAttribute<'a>> for PatchSpecialAttribute<'a>
impl<'a> PartialEq<PatchSpecialAttribute<'a>> for PatchSpecialAttribute<'a>
source§fn eq(&self, other: &PatchSpecialAttribute<'a>) -> bool
fn eq(&self, other: &PatchSpecialAttribute<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> StructuralPartialEq for PatchSpecialAttribute<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for PatchSpecialAttribute<'a>
impl<'a> !Send for PatchSpecialAttribute<'a>
impl<'a> !Sync for PatchSpecialAttribute<'a>
impl<'a> Unpin for PatchSpecialAttribute<'a>
impl<'a> !UnwindSafe for PatchSpecialAttribute<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more