Struct smallstr::FromUtf8Error
[−]
[src]
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]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<A: Array<Item = u8>> Display for FromUtf8Error<A>
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<A: Array<Item = u8> + Debug> Error for FromUtf8Error<A>
[src]
Auto Trait Implementations
impl<A> Send for FromUtf8Error<A> where
A: Send,
A: Send,
impl<A> Sync for FromUtf8Error<A> where
A: Sync,
A: Sync,