pub struct DisplayUnescapeLossy<'a> { /* private fields */ }
Expand description
A wrapper for an Unescape
iterator that implements fmt::Display
lossily.
This struct is created by the Unescape::display_utf8_lossy()
method. Like
DisplayUnescape
, it performs its operation without any heap allocations.
This method differs from display_utf8
in that it handles two types of
errors gracefully:
- Invalid JSON escape sequences will be ignored, and the iterator will
continue to completion without a
fmt::Error
. - Invalid UTF-8 byte sequences will be replaced with the Unicode replacement character (``, U+FFFD)
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for DisplayUnescapeLossy<'a>
impl<'a> RefUnwindSafe for DisplayUnescapeLossy<'a>
impl<'a> Send for DisplayUnescapeLossy<'a>
impl<'a> Sync for DisplayUnescapeLossy<'a>
impl<'a> Unpin for DisplayUnescapeLossy<'a>
impl<'a> UnwindSafe for DisplayUnescapeLossy<'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