pub struct HtmlElement(/* private fields */);Expand description
Erasable stand-in for web_sys::HtmlElement used as callback parameter.
Use Materialize::materialize to convert it to the actual value.
Implementations§
Source§impl HtmlElement
impl HtmlElement
Sourcepub fn new(value: HtmlElement) -> Self
pub fn new(value: HtmlElement) -> Self
Creates a new HtmlElement instance. The "callbacks" feature is required to use this function.
Trait Implementations§
Source§impl Clone for HtmlElement
impl Clone for HtmlElement
Source§fn clone(&self) -> HtmlElement
fn clone(&self) -> HtmlElement
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HtmlElement
impl Debug for HtmlElement
Source§impl<'a> From<&'a HtmlElement> for &'a HtmlElement
Available on crate feature callbacks only.
impl<'a> From<&'a HtmlElement> for &'a HtmlElement
Available on crate feature
callbacks only.Source§fn from(contents: &'a HtmlElement) -> Self
fn from(contents: &'a HtmlElement) -> Self
Converts to this type from the input type.
Source§impl From<HtmlElement> for HtmlElement
Available on crate feature callbacks only.
impl From<HtmlElement> for HtmlElement
Available on crate feature
callbacks only.Source§fn from(contents: HtmlElement) -> Self
fn from(contents: HtmlElement) -> Self
Converts to this type from the input type.
Source§impl<'a> Materialize<&'a HtmlElement> for &'a HtmlElement
Available on crate feature callbacks only.
impl<'a> Materialize<&'a HtmlElement> for &'a HtmlElement
Available on crate feature
callbacks only.Source§fn materialize(self) -> &'a HtmlElement
fn materialize(self) -> &'a HtmlElement
Convert a DOM stand-in to its web type value. This is a no-op with the
"callbacks" feature and unreachable otherwise.Source§impl Materialize<HtmlElement> for HtmlElement
Available on crate feature callbacks only.
impl Materialize<HtmlElement> for HtmlElement
Available on crate feature
callbacks only.Source§fn materialize(self) -> HtmlElement
fn materialize(self) -> HtmlElement
Convert a DOM stand-in to its web type value. This is a no-op with the
"callbacks" feature and unreachable otherwise.Auto Trait Implementations§
impl Freeze for HtmlElement
impl RefUnwindSafe for HtmlElement
impl Send for HtmlElement
impl Sync for HtmlElement
impl Unpin for HtmlElement
impl UnsafeUnpin for HtmlElement
impl UnwindSafe for HtmlElement
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