Enum encode_unicode::error::InvalidUtf8Slice [−][src]
Reasons why a byte slice is not valid UTF-8, in sinking precedence.
Variants
Utf8(InvalidUtf8)
Something is certainly wrong with the first byte.
Codepoint(InvalidCodepoint)
The encoded codepoint is invalid:
TooShort(usize)
The slice is too short; n bytes was required.
Trait Implementations
impl Clone for InvalidUtf8Slice
[src]
fn clone(&self) -> InvalidUtf8Slice
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for InvalidUtf8Slice
[src]
impl Debug for InvalidUtf8Slice
[src]
impl Display for InvalidUtf8Slice
[src]
impl Eq for InvalidUtf8Slice
[src]
impl Error for InvalidUtf8Slice
[src]
fn description(&self) -> &'static str
[src]
fn cause(&self) -> Option<&dyn Error>
[src]
pub fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
pub fn backtrace(&self) -> Option<&Backtrace>
[src]
impl From<InvalidCodepoint> for InvalidUtf8Slice
[src]
fn from(error: InvalidCodepoint) -> InvalidUtf8Slice
[src]
impl From<InvalidUtf8> for InvalidUtf8Slice
[src]
fn from(error: InvalidUtf8) -> InvalidUtf8Slice
[src]
impl PartialEq<InvalidUtf8Slice> for InvalidUtf8Slice
[src]
fn eq(&self, other: &InvalidUtf8Slice) -> bool
[src]
fn ne(&self, other: &InvalidUtf8Slice) -> bool
[src]
impl StructuralEq for InvalidUtf8Slice
[src]
impl StructuralPartialEq for InvalidUtf8Slice
[src]
Auto Trait Implementations
impl RefUnwindSafe for InvalidUtf8Slice
impl Send for InvalidUtf8Slice
impl Sync for InvalidUtf8Slice
impl Unpin for InvalidUtf8Slice
impl UnwindSafe for InvalidUtf8Slice
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,