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).
Trait Implementations§
source§impl<'e> Default for DefaultEscaper<'e>
impl<'e> Default for DefaultEscaper<'e>
source§impl<'e> Escaper for DefaultEscaper<'e>
impl<'e> Escaper for DefaultEscaper<'e>
fn append_to_output<'b, 'c, 'd>(
&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,
fn check_type(&self, value_type: &ExpryType, escape_mode: &[u8]) -> bool
Auto Trait Implementations§
impl<'e> Freeze for DefaultEscaper<'e>
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§
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