pub struct DecodeStats {
pub invalid: u32,
pub astral: u32,
}Expand description
What the decoder had to replace with U+FFFD.
Fields§
§invalid: u32Malformed UTF-8 sequences (each maximal invalid run counts once, as in
String::from_utf8_lossy).
astral: u32Valid code points above U+FFFF (never emitted as surrogate pairs).
Trait Implementations§
Source§impl Clone for DecodeStats
impl Clone for DecodeStats
impl Copy for DecodeStats
Source§impl Debug for DecodeStats
impl Debug for DecodeStats
Source§impl Default for DecodeStats
impl Default for DecodeStats
impl Eq for DecodeStats
Source§impl PartialEq for DecodeStats
impl PartialEq for DecodeStats
impl StructuralPartialEq for DecodeStats
Auto Trait Implementations§
impl Freeze for DecodeStats
impl RefUnwindSafe for DecodeStats
impl Send for DecodeStats
impl Sync for DecodeStats
impl Unpin for DecodeStats
impl UnsafeUnpin for DecodeStats
impl UnwindSafe for DecodeStats
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