pub struct AutoEscaper<'a, T: ?Sized, E> { /* private fields */ }Expand description
Used internally by askama to select the appropriate escaper
Implementations§
Trait Implementations§
Source§impl<'a, T: Display, E: Escaper> AutoEscape for &AutoEscaper<'a, &&&MaybeSafe<T>, E>
impl<'a, T: Display, E: Escaper> AutoEscape for &AutoEscaper<'a, &&&MaybeSafe<T>, E>
Source§type Error = Infallible
type Error = Infallible
Early error testing for the input value, usually
InfallibleSource§impl<'a, T: Display, E> AutoEscape for &AutoEscaper<'a, &&&Safe<T>, E>
impl<'a, T: Display, E> AutoEscape for &AutoEscaper<'a, &&&Safe<T>, E>
Source§type Error = Infallible
type Error = Infallible
Early error testing for the input value, usually
InfallibleSource§impl<'a, T: Display, E: Escaper> AutoEscape for &AutoEscaper<'a, &&MaybeSafe<T>, E>
impl<'a, T: Display, E: Escaper> AutoEscape for &AutoEscaper<'a, &&MaybeSafe<T>, E>
Source§type Error = Infallible
type Error = Infallible
Early error testing for the input value, usually
InfallibleSource§impl<'a, T: Display, E> AutoEscape for &AutoEscaper<'a, &&Safe<T>, E>
impl<'a, T: Display, E> AutoEscape for &AutoEscaper<'a, &&Safe<T>, E>
Source§type Error = Infallible
type Error = Infallible
Early error testing for the input value, usually
InfallibleSource§impl<'a, T: Display, E: Escaper> AutoEscape for &AutoEscaper<'a, &MaybeSafe<T>, E>
impl<'a, T: Display, E: Escaper> AutoEscape for &AutoEscaper<'a, &MaybeSafe<T>, E>
Source§type Error = Infallible
type Error = Infallible
Early error testing for the input value, usually
InfallibleSource§impl<'a, T: Display, E> AutoEscape for &AutoEscaper<'a, &Safe<T>, E>
impl<'a, T: Display, E> AutoEscape for &AutoEscaper<'a, &Safe<T>, E>
Source§type Error = Infallible
type Error = Infallible
Early error testing for the input value, usually
InfallibleSource§impl<'a, T: Display, E: Escaper> AutoEscape for &AutoEscaper<'a, MaybeSafe<T>, E>
impl<'a, T: Display, E: Escaper> AutoEscape for &AutoEscaper<'a, MaybeSafe<T>, E>
Source§type Error = Infallible
type Error = Infallible
Early error testing for the input value, usually
InfallibleSource§impl<'a, T: Display, E> AutoEscape for &AutoEscaper<'a, Safe<T>, E>
impl<'a, T: Display, E> AutoEscape for &AutoEscaper<'a, Safe<T>, E>
Source§type Error = Infallible
type Error = Infallible
Early error testing for the input value, usually
InfallibleSource§impl<'a, T: HtmlSafe + ?Sized> AutoEscape for &AutoEscaper<'a, T, Html>
Don’t escape HTML safe types
impl<'a, T: HtmlSafe + ?Sized> AutoEscape for &AutoEscaper<'a, T, Html>
Don’t escape HTML safe types
Source§type Error = Infallible
type Error = Infallible
Early error testing for the input value, usually
InfallibleAuto Trait Implementations§
impl<'a, T, E> Freeze for AutoEscaper<'a, T, E>
impl<'a, T, E> RefUnwindSafe for AutoEscaper<'a, T, E>
impl<'a, T, E> Send for AutoEscaper<'a, T, E>
impl<'a, T, E> Sync for AutoEscaper<'a, T, E>
impl<'a, T, E> Unpin for AutoEscaper<'a, T, E>
impl<'a, T, E> UnwindSafe for AutoEscaper<'a, T, 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