[−][src]Struct smallstr::FromUtf8Error
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,
A: Send,
impl<A> Sync for FromUtf8Error<A> where
A: Sync,
A: Sync,
impl<A> Unpin for FromUtf8Error<A> where
A: Unpin,
A: Unpin,
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,
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> 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.
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>,