Struct wasm_react::props::DangerousHtml
source · pub struct DangerousHtml<'a> {
pub __html: Cow<'a, str>,
}Expand description
To be used with H::dangerously_set_inner_html().
Fields§
§__html: Cow<'a, str>The HTML content to be rendered.
Trait Implementations§
source§impl<'a> Clone for DangerousHtml<'a>
impl<'a> Clone for DangerousHtml<'a>
source§fn clone(&self) -> DangerousHtml<'a>
fn clone(&self) -> DangerousHtml<'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 moresource§impl<'a> Debug for DangerousHtml<'a>
impl<'a> Debug for DangerousHtml<'a>
source§impl<'a> Default for DangerousHtml<'a>
impl<'a> Default for DangerousHtml<'a>
source§fn default() -> DangerousHtml<'a>
fn default() -> DangerousHtml<'a>
Returns the “default value” for a type. Read more
source§impl<'a> PartialEq<DangerousHtml<'a>> for DangerousHtml<'a>
impl<'a> PartialEq<DangerousHtml<'a>> for DangerousHtml<'a>
source§fn eq(&self, other: &DangerousHtml<'a>) -> bool
fn eq(&self, other: &DangerousHtml<'a>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl<'a> Eq for DangerousHtml<'a>
impl<'a> StructuralEq for DangerousHtml<'a>
impl<'a> StructuralPartialEq for DangerousHtml<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for DangerousHtml<'a>
impl<'a> Send for DangerousHtml<'a>
impl<'a> Sync for DangerousHtml<'a>
impl<'a> Unpin for DangerousHtml<'a>
impl<'a> UnwindSafe for DangerousHtml<'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