pub struct HTMLElement { /* private fields */ }Expand description
Raw HTML content for a custom host element’s innerHTML.
Implementations§
Source§impl HTMLElement
impl HTMLElement
Sourcepub fn new(html: &str) -> HTMLElement
pub fn new(html: &str) -> HTMLElement
Creates a wrapper around an HTML fragment string.
§Examples
use cotis_web::custom_data::HTMLElement;
let el = HTMLElement::new("<span>Hello</span>");
assert_eq!(el.html(), "<span>Hello</span>");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 moreAuto 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<H, TailTarget, Source, Idx> Embed<RenderTList<H, TailTarget>, There<Idx>> for Sourcewhere
TailTarget: IsRenderList,
Source: Embed<TailTarget, Idx>,
impl<H, TailTarget, Source, Idx> Embed<RenderTList<H, TailTarget>, There<Idx>> for Sourcewhere
TailTarget: IsRenderList,
Source: Embed<TailTarget, Idx>,
Source§fn embed(self) -> RenderTList<H, TailTarget>
fn embed(self) -> RenderTList<H, TailTarget>
Converts
self into Target.