pub struct SafeHtml<'a>(/* private fields */);Expand description
Markup that is trusted as it is: written without escaping. Making one is
a visible, searchable step (SafeHtml::trusted), and the place to
sanitize is where the markup was produced (when content is saved), not
here.
Implementations§
Trait Implementations§
impl<'a> Copy for SafeHtml<'a>
impl<'a> Eq for SafeHtml<'a>
impl<'a> StructuralPartialEq for SafeHtml<'a>
Auto Trait Implementations§
impl<'a> Forget for SafeHtml<'a>
impl<'a> Freeze for SafeHtml<'a>
impl<'a> RefUnwindSafe for SafeHtml<'a>
impl<'a> Send for SafeHtml<'a>
impl<'a> Sync for SafeHtml<'a>
impl<'a> Unpin for SafeHtml<'a>
impl<'a> UnsafeUnpin for SafeHtml<'a>
impl<'a> UnwindSafe for SafeHtml<'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