Struct simdutf8::compat::Utf8Error [−][src]
pub struct Utf8Error { /* fields omitted */ }
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
impl Utf8Error
[src]
impl Utf8Error
[src]#[must_use]pub fn valid_up_to(&self) -> usize
[src]
#[must_use]pub fn valid_up_to(&self) -> usize
[src]Analogue to std::str::Utf8Error::valid_up_to()
.
…
#[must_use]pub fn error_len(&self) -> Option<usize>
[src]
#[must_use]pub fn error_len(&self) -> Option<usize>
[src]Analogue to std::str::Utf8Error::error_len()
.
…
Trait Implementations
impl Error for Utf8Error
[src]
impl Error for Utf8Error
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]👎 Deprecated since 1.42.0:
use the Display impl or to_string()
impl Copy for Utf8Error
[src]
impl Eq for Utf8Error
[src]
impl StructuralEq for Utf8Error
[src]
impl StructuralPartialEq for Utf8Error
[src]
Auto Trait Implementations
impl RefUnwindSafe for Utf8Error
impl Send for Utf8Error
impl Sync for Utf8Error
impl Unpin for Utf8Error
impl UnwindSafe for Utf8Error
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more