pub struct EscapedContent<'a>(pub &'a str);
Expand description
Wrapper around a str that will escape the content when writing.
This implementation will transform:
&
to&
<
to<
>
to>
"
to"
'
to'
/
to/
Tuple Fields§
§0: &'a str
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for EscapedContent<'a>
impl<'a> RefUnwindSafe for EscapedContent<'a>
impl<'a> Send for EscapedContent<'a>
impl<'a> Sync for EscapedContent<'a>
impl<'a> Unpin for EscapedContent<'a>
impl<'a> UnwindSafe for EscapedContent<'a>
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