pub struct Raw<T>(pub T);Expand description
Text that should not be escaped at runtime, such as dynamically generated html, or some content that has already been escaped.
Note, that string literals are automatically escaped at compile-time when
used within html!, therefore, one should not wrap static content with Raw in
an attempt to improve performance.
html! {
@avosetta::raw("Hello, World!")
};Tuple Fields§
§0: TTrait Implementations§
Source§impl<T: Ord> Ord for Raw<T>
impl<T: Ord> Ord for Raw<T>
Source§impl<T: PartialOrd> PartialOrd for Raw<T>
impl<T: PartialOrd> PartialOrd for Raw<T>
impl<T: Copy> Copy for Raw<T>
impl<T: Eq> Eq for Raw<T>
impl<T> StructuralPartialEq 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