pub enum ElementAction {
Keep,
Unwrap,
Remove,
}Expand description
What happens to an element of raw HTML.
Variants§
Keep
The element stays, with the attributes HtmlPolicy::attribute lets through.
Unwrap
Only the tag goes away, its content stays in place.
Remove
The element goes away together with its content — like <script>.
Trait Implementations§
Source§impl Clone for ElementAction
impl Clone for ElementAction
impl Copy for ElementAction
Source§impl Debug for ElementAction
impl Debug for ElementAction
impl Eq for ElementAction
Source§impl PartialEq for ElementAction
impl PartialEq for ElementAction
impl StructuralPartialEq for ElementAction
Auto Trait Implementations§
impl Freeze for ElementAction
impl RefUnwindSafe for ElementAction
impl Send for ElementAction
impl Sync for ElementAction
impl Unpin for ElementAction
impl UnsafeUnpin for ElementAction
impl UnwindSafe for ElementAction
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