Struct hairy::DefaultEscaper
source · [−]pub struct DefaultEscaper<'e> { /* private fields */ }
Expand description
Default escaper. Defaults to escaping in html
mode. Currently supports html
, url
, and none
(throws error on other escape modes).
Implementations
Trait Implementations
sourceimpl<'e> Escaper<'e> for DefaultEscaper<'e>
impl<'e> Escaper<'e> for DefaultEscaper<'e>
fn append_to_output<'b, 'c, 'd>(
&mut self,
value: DecodedValue<'b>,
escape_mode: &'b [u8],
allocator: &mut MemoryScope<'c>,
output: &mut Vec<&'d [u8]>
) -> Result<(), HairyEvalError<'d>> where
'c: 'd,
'b: 'd,
'e: 'b,
Auto Trait Implementations
impl<'e> RefUnwindSafe for DefaultEscaper<'e>
impl<'e> Send for DefaultEscaper<'e>
impl<'e> Sync for DefaultEscaper<'e>
impl<'e> Unpin for DefaultEscaper<'e>
impl<'e> UnwindSafe for DefaultEscaper<'e>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more