pub struct Utf8Error { /* private fields */ }
Expand description
UTF-8 error information compatible with [std::str::Utf8Error
].
Contains information on the location of the encountered validation error and the length of the invalid UTF-8 sequence.
Implementations§
Source§impl Utf8Error
impl Utf8Error
Sourcepub fn valid_up_to(&self) -> usize
pub fn valid_up_to(&self) -> usize
Analogue to std::str::Utf8Error::valid_up_to()
.
…
Sourcepub fn error_len(&self) -> Option<usize>
pub fn error_len(&self) -> Option<usize>
Analogue to std::str::Utf8Error::error_len()
.
…
Trait Implementations§
impl Copy for Utf8Error
impl Eq for Utf8Error
impl StructuralPartialEq for Utf8Error
Auto Trait Implementations§
impl Freeze for Utf8Error
impl RefUnwindSafe for Utf8Error
impl Send for Utf8Error
impl Sync for Utf8Error
impl Unpin for Utf8Error
impl UnwindSafe for Utf8Error
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