pub struct TrustedHtml(/* private fields */);Expand description
Audited compile-time static HTML fragment (e.g. inline SVG icon literals).
Intentionally accepts only &'static str so runtime user input cannot bypass escaping.
Implementations§
Source§impl TrustedHtml
impl TrustedHtml
Trait Implementations§
Source§impl Clone for TrustedHtml
impl Clone for TrustedHtml
impl Copy for TrustedHtml
Source§impl Debug for TrustedHtml
impl Debug for TrustedHtml
impl Eq for TrustedHtml
Source§impl PartialEq for TrustedHtml
impl PartialEq for TrustedHtml
Source§impl Render for TrustedHtml
impl Render for TrustedHtml
impl StructuralPartialEq for TrustedHtml
Auto Trait Implementations§
impl Forget for TrustedHtml
impl Freeze for TrustedHtml
impl Move for TrustedHtml
impl RefUnwindSafe for TrustedHtml
impl Send for TrustedHtml
impl Sync for TrustedHtml
impl Unpin for TrustedHtml
impl UnsafeUnpin for TrustedHtmlwhere
&'static str: UnsafeUnpin,
impl UnwindSafe for TrustedHtmlwhere
&'static str: UnwindSafe,
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