pub struct RawHtml(pub String);Expand description
A wrapper to mark a string as safe raw HTML that should NOT be escaped.
Tuple Fields§
§0: StringImplementations§
Trait Implementations§
Source§impl HtmlEscape for RawHtml
impl HtmlEscape for RawHtml
Source§fn escape_html(&self) -> Cow<'_, str>
fn escape_html(&self) -> Cow<'_, str>
Escapes characters in
self so they can be rendered safely as HTML.Auto Trait Implementations§
impl Freeze for RawHtml
impl RefUnwindSafe for RawHtml
impl Send for RawHtml
impl Sync for RawHtml
impl Unpin for RawHtml
impl UnsafeUnpin for RawHtml
impl UnwindSafe for RawHtml
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