[][src]Struct smallstr::FromUtf8Error

pub struct FromUtf8Error<A: Array<Item = u8>> { /* fields omitted */ }

A possible error value when creating a SmallString from a byte array.

This type is the error type for the from_buf method on SmallString.

Methods

impl<A: Array<Item = u8>> FromUtf8Error<A>[src]

pub fn as_bytes(&self) -> &[u8][src]

Returns the slice of [u8] bytes that were attempted to convert to a SmallString.

pub fn into_buf(self) -> A[src]

Returns the byte array that was attempted to convert into a SmallString.

pub fn utf8_error(&self) -> Utf8Error[src]

Returns the Utf8Error to get more details about the conversion failure.

Trait Implementations

impl<A: Debug + Array<Item = u8>> Debug for FromUtf8Error<A>[src]

impl<A: Array<Item = u8>> Display for FromUtf8Error<A>[src]

Auto Trait Implementations

impl<A> Send for FromUtf8Error<A> where
    A: Send

impl<A> Sync for FromUtf8Error<A> where
    A: Sync

impl<A> Unpin for FromUtf8Error<A> where
    A: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.