pub struct Escape<R>(pub R);Expand description
Render the inner template and escape the output.
This is the inverse of Raw.
Tuple Fields§
§0: RTrait Implementations§
Source§impl<R: Ord> Ord for Escape<R>
impl<R: Ord> Ord for Escape<R>
Source§impl<R: PartialOrd> PartialOrd for Escape<R>
impl<R: PartialOrd> PartialOrd for Escape<R>
Source§impl<R> Render for Escape<R>where
R: Render,
impl<R> Render for Escape<R>where
R: Render,
Source§fn render(&self, tmpl: &mut TemplateBuffer<'_>)where
Self: Sized,
fn render(&self, tmpl: &mut TemplateBuffer<'_>)where
Self: Sized,
Render this into a template buffer.
Source§impl<R> RenderMut for Escape<R>where
R: RenderMut,
impl<R> RenderMut for Escape<R>where
R: RenderMut,
Source§fn render_mut(&mut self, tmpl: &mut TemplateBuffer<'_>)where
Self: Sized,
fn render_mut(&mut self, tmpl: &mut TemplateBuffer<'_>)where
Self: Sized,
Render this into a template buffer.
Source§impl<R> RenderOnce for Escape<R>where
R: RenderOnce,
impl<R> RenderOnce for Escape<R>where
R: RenderOnce,
Source§fn render_once(self, tmpl: &mut TemplateBuffer<'_>)where
Self: Sized,
fn render_once(self, tmpl: &mut TemplateBuffer<'_>)where
Self: Sized,
Render this into a template buffer.
impl<R: Copy> Copy for Escape<R>
impl<R: Eq> Eq for Escape<R>
impl<R> StructuralPartialEq for Escape<R>
Auto Trait Implementations§
impl<R> Freeze for Escape<R>where
R: Freeze,
impl<R> RefUnwindSafe for Escape<R>where
R: RefUnwindSafe,
impl<R> Send for Escape<R>where
R: Send,
impl<R> Sync for Escape<R>where
R: Sync,
impl<R> Unpin for Escape<R>where
R: Unpin,
impl<R> UnwindSafe for Escape<R>where
R: 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