pub struct Raw<T>(pub T);Expand description
Wrapper to render content using Display without escaping.
Use this wrapper when you have HTML content that is already safe and should be rendered without escaping. This should generally only be used for trusted content, not for user-provided input.
§Example
use gen_html::{html, Raw};
let oopsie = html! {
p { (Raw("<div>")) }
};Tuple Fields§
§0: TTrait Implementations§
impl<T: Copy> Copy for Raw<T>
Auto Trait Implementations§
impl<T> Freeze for Raw<T>where
T: Freeze,
impl<T> RefUnwindSafe for Raw<T>where
T: RefUnwindSafe,
impl<T> Send for Raw<T>where
T: Send,
impl<T> Sync for Raw<T>where
T: Sync,
impl<T> Unpin for Raw<T>where
T: Unpin,
impl<T> UnwindSafe for Raw<T>where
T: 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