Struct basic_text::FromTextError [−][src]
pub struct FromTextError { /* fields omitted */ }Expand description
FromTextError is to TextString as FromUtf8Error is to String.
Implementations
impl FromTextError[src]
impl FromTextError[src]pub fn as_bytes(&self) -> &[u8][src]
pub fn as_bytes(&self) -> &[u8][src]Returns a slice of u8s bytes that were attempted to convert to a
TextString.
pub fn into_bytes(self) -> Vec<u8>[src]
pub fn into_bytes(self) -> Vec<u8>[src]Returns the bytes that were attempted to convert to a TextString.
pub fn text_error(&self) -> TextError[src]
pub fn text_error(&self) -> TextError[src]Fetch a TextError to get more details about the conversion failure.
Trait Implementations
impl Clone for FromTextError[src]
impl Clone for FromTextError[src]fn clone(&self) -> FromTextError[src]
fn clone(&self) -> FromTextError[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
impl Debug for FromTextError[src]
impl Debug for FromTextError[src]impl Display for FromTextError[src]
impl Display for FromTextError[src]impl Error for FromTextError[src]
impl Error for FromTextError[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]backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str1.0.0[src]
fn description(&self) -> &str1.0.0[src]use the Display impl or to_string()
impl From<FromUtf8Error> for FromTextError[src]
impl From<FromUtf8Error> for FromTextError[src]fn from(err: FromUtf8Error) -> Self[src]
fn from(err: FromUtf8Error) -> Self[src]Performs the conversion.
impl PartialEq<FromTextError> for FromTextError[src]
impl PartialEq<FromTextError> for FromTextError[src]fn eq(&self, other: &FromTextError) -> bool[src]
fn eq(&self, other: &FromTextError) -> bool[src]This method tests for self and other values to be equal, and is used
by ==. Read more
fn ne(&self, other: &FromTextError) -> bool[src]
fn ne(&self, other: &FromTextError) -> bool[src]This method tests for !=.
impl Eq for FromTextError[src]
impl StructuralEq for FromTextError[src]
impl StructuralPartialEq for FromTextError[src]
Auto Trait Implementations
impl RefUnwindSafe for FromTextError
impl Send for FromTextError
impl Sync for FromTextError
impl Unpin for FromTextError
impl UnwindSafe for FromTextError
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 = TThe 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