Enum script::dom::element::AttributeMutation
source · pub enum AttributeMutation<'a> {
Set(Option<&'a AttrValue>),
Removed,
}
Variants§
Set(Option<&'a AttrValue>)
The attribute is set, keep track of old value. https://dom.spec.whatwg.org/#attribute-is-set
Removed
The attribute is removed. https://dom.spec.whatwg.org/#attribute-is-removed
Implementations§
Trait Implementations§
source§impl<'a> Clone for AttributeMutation<'a>
impl<'a> Clone for AttributeMutation<'a>
source§fn clone(&self) -> AttributeMutation<'a>
fn clone(&self) -> AttributeMutation<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl<'a> Copy for AttributeMutation<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for AttributeMutation<'a>
impl<'a> Send for AttributeMutation<'a>
impl<'a> Sync for AttributeMutation<'a>
impl<'a> Unpin for AttributeMutation<'a>
impl<'a> !UnwindSafe for AttributeMutation<'a>
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> MaybeBoxed<Box<T, Global>> for T
impl<T> MaybeBoxed<Box<T, Global>> for T
source§fn maybe_boxed(self) -> Box<T, Global>
fn maybe_boxed(self) -> Box<T, Global>
Convert
source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert