pub struct EscapeGuard<T> { /* private fields */ }Expand description
Writer adaptor that replaces xml escaping characters with their encoded value.
Disallowed characters are " ' < > &. characters are replaced with their equivalent from:
https://dev.w3.org/html5/html-author/charref
Implementations§
Source§impl<T: Write> EscapeGuard<T>
impl<T: Write> EscapeGuard<T>
pub fn new(writer: T) -> EscapeGuard<T>
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for EscapeGuard<T>where
T: Freeze,
impl<T> RefUnwindSafe for EscapeGuard<T>where
T: RefUnwindSafe,
impl<T> Send for EscapeGuard<T>where
T: Send,
impl<T> Sync for EscapeGuard<T>where
T: Sync,
impl<T> Unpin for EscapeGuard<T>where
T: Unpin,
impl<T> UnsafeUnpin for EscapeGuard<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for EscapeGuard<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